public Screen(IMDbgShell shell) { Console.WindowWidth = 100; _Shell = shell; _OldIo = _Shell.IO; _CurrentMenu = _MainMenu; _FileList = new FileList(shell, Console.WindowHeight - 7); _VariableView = new VariableViewer(_Shell, "#vars#"); _Buffers.Add(_CommandView); }
public Screen(IMDbgShell shell) { Console.WindowWidth = 100; _Shell = shell; _OldIo = _Shell.IO; _CurrentMenu = _MainMenu; _FileList = new FileList(shell, Console.WindowHeight - 7); _VariableView = new VariableViewer(_Shell, "#vars#"); _Buffers.Add(_CommandView); }
private void MainForm_Activated(object sender, System.EventArgs e) { if(m_savedIO!=null) return; //this needs to be executed only when we initialize the form first time. Debug.Assert(m_savedIO==null); m_savedIO = m_ui.IO; Debug.Assert(m_savedIO!=null); m_ui.IO=this; m_initComplete.Set(); }