public void ShowClassIndexWindow() { if (this.classIndexWindow == null) { ClassIndexViewModel classIndexViewModel = new ClassIndexViewModel( this.unitsIoController, this.unitsXmlIoController, this.firstExamples); this.classIndexWindow = new ClassIndexWindow(); this.SetupWindow( this.classIndexWindow, classIndexViewModel, CloseClassIndexWindow, ClassIndexWindowClosed); } this.classIndexWindow.Focus(); }
/// <summary> /// Form closed, set to null. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void ClassIndexWindowClosed(object sender, EventArgs e) { this.classIndexWindow = null; }