Inheritance: WeifenLuo.WinFormsUI.Docking.DockContent
        public SystemListInstance(IntPtr targetInstance, SystemListView systemListView)
            : base("SystemListView")
        {
            this.targetInstance = targetInstance;
            this.systemListView = systemListView;

            registerEvent("addSystem", systemListView, typeof(SystemListView).GetMethod("addSystem"));

            setTargetInstance(targetInstance);

            refreshList();
        }
Esempio n. 2
0
        private void systemListToolStripMenuItem_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < nativeInstances.Count; ++i)
            {
                if (nativeInstances[i].GetType() == typeof(SystemListInstance))
                {
                    logView.addMessage("[INFO] SystemList already running!");
                    return;
                }
            }

            SystemListView systemListView = new SystemListView();

            systemListView.Show(dockPanel, DockState.DockBottom);

            nativeInstances.Add(new SystemListInstance(getCurrentEditor().instance.getInstancePtr(), systemListView));
        }