//public void AddObjectToDebugView(Object dbgObject) //{ //} internal void AddTabItem(String context, DBGView view) { TabControl tcContext = GetContext(context); String type = "Debugging"; if (view._dbgObj != null) { type = view._dbgObj.GetType().ToString(); } TabPage tp = new TabPage(type); tp.Controls.Add(view); MethodInvoker invoker = delegate { tcContext.TabPages.Add(tp); _tabPages.Add(view, tp); }; this.Invoke(invoker); //tcDebugObjects.TabPages.Add(tp); }
public void AddDebugObject(String contextName, Object dbgObject) { // need check if we are running debug mode if (!_debugObjects.ContainsKey(dbgObject)) { Logger.Log(LogEntryType.Info, String.Format("Adding {0} to beRemote debugger...", dbgObject), loggerContext); MethodInvoker invoker = delegate { GUI.DBGView view = new GUI.DBGView(dbgObject); _debugObjects.Add(dbgObject, view); _frmDebugWindow.AddTabItem(contextName, view); }; _frmDebugWindow.BeginInvoke(invoker); } }
internal void RemoveTabItem(string contextName, DBGView dbgView) { GetContext(contextName).TabPages.Remove(_tabPages[dbgView]); _tabPages.Remove(dbgView); }