2015-05-22 23:58:56 +02:00
|
|
|
|
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 ModulesPanel : BasePanel {
|
|
|
|
|
|
private readonly Debugger debugger;
|
|
|
|
|
|
|
|
|
|
|
|
public ModulesPanel(Debugger debugger) {
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
this.debugger = debugger;
|
2015-05-24 22:43:15 +02:00
|
|
|
|
|
|
|
|
|
|
debugger.ModuleList.Changed += UpdateModulesList;
|
|
|
|
|
|
UpdateModulesList();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void UpdateModulesList() {
|
|
|
|
|
|
modulesListView.BeginUpdate();
|
|
|
|
|
|
modulesListView.Items.Clear();
|
|
|
|
|
|
foreach (Module module in debugger.ModuleList) {
|
|
|
|
|
|
modulesListView.Items.Add("Module A");
|
|
|
|
|
|
}
|
|
|
|
|
|
modulesListView.EndUpdate();
|
2015-05-22 23:58:56 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|