Files
Xenia-Canary/src/Xenia.Debug.UI/Views/FunctionsPanel.cs
2015-05-25 00:51:23 -07:00

35 lines
880 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;
using Xenia.Debug.UI.Controls;
namespace Xenia.Debug.UI.Views {
public partial class FunctionsPanel : BasePanel {
private readonly Debugger debugger;
public FunctionsPanel(Debugger debugger) {
InitializeComponent();
this.debugger = debugger;
debugger.ModuleList.Changed += UpdateModulesList;
UpdateModulesList();
}
private void UpdateModulesList() {
modulesComboBox.BeginUpdate();
modulesComboBox.Items.Clear();
foreach (Module module in debugger.ModuleList) {
modulesComboBox.Items.Add("Module A");
}
modulesComboBox.EndUpdate();
}
}
}