Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 /// <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;
 }