public DebugManager(IManager manager) { mManager = manager; mPlugin = (LuaPlugin) manager.GetPlugin(typeof(LuaPlugin)); mTransports = new List<ITransport>(); mConnectionStatus = ConnectionStatus.NotConnected; mTargetStatus = TargetState.Disconnected; mConnectedTarget = null; mBreakpoints = new List<BreakpointDetails>(); mWatches = new Dictionary<int, WatchDetails>(); mValueCache = new ValueCache(); mMainWindowComponents = new MainWindowComponents(this); InitialiseTransports(); Manager.AddToMenuStrip(mMainWindowComponents.menuStrip.Items); Manager.AddToStatusStrip(mMainWindowComponents.statusStrip.Items); Manager.AddToolStrip(mMainWindowComponents.toolStrip, DockStyle.Top, 1); Manager.ProjectOpened += new ProjectOpenedEventHandler(Manager_ProjectOpened); if(Manager.MainWindow != null) Manager.MainWindow.FormClosing += new FormClosingEventHandler(MainWindow_FormClosing); }
public DebugManager(IManager manager) { mManager = manager; mPlugin = (LuaPlugin)manager.GetPlugin(typeof(LuaPlugin)); mTransports = new List <ITransport>(); mConnectionStatus = ConnectionStatus.NotConnected; mTargetStatus = TargetState.Disconnected; mConnectedTarget = null; mBreakpoints = new List <BreakpointDetails>(); mWatches = new Dictionary <int, WatchDetails>(); mValueCache = new ValueCache(); mMainWindowComponents = new MainWindowComponents(this); InitialiseTransports(); Manager.AddToMenuStrip(mMainWindowComponents.menuStrip.Items); Manager.AddToStatusStrip(mMainWindowComponents.statusStrip.Items); Manager.AddToolStrip(mMainWindowComponents.toolStrip, DockStyle.Top, 1); Manager.ProjectOpened += new ProjectOpenedEventHandler(Manager_ProjectOpened); if (Manager.MainWindow != null) { Manager.MainWindow.FormClosing += new FormClosingEventHandler(MainWindow_FormClosing); } }