Ejemplo n.º 1
0
        /// <summary>
        /// Gets the instance.
        /// </summary>
        /// <returns></returns>
        public static About GetInstance()
        {
            if (instance == null)
            {
                instance = new About();
            }

            return instance;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Closes all windows.
        /// </summary>
        private void CloseAllWindows()
        {
            if (this.convergencePlot2DInstance != null)
            {
                this.convergencePlot2DInstance.Close();
                this.convergencePlot2DInstance = null;
            }

            if (this.convergencePlot3DInstance != null)
            {
                this.convergencePlot3DInstance.Close();
                this.convergencePlot3DInstance = null;
            }

            if (this.boxingPlot2D != null)
            {
                this.boxingPlot2D.Close();
                this.boxingPlot2D = null;
            }

            if (this.aboutWindow != null)
            {
                this.aboutWindow.Close();
                this.aboutWindow = null;
            }

        }
Ejemplo n.º 3
0
 /// <summary>
 /// Handles the 2 event of the MenuItem_Click control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param>
 private void MenuItem_Click_2(object sender, RoutedEventArgs e)
 {
     this.aboutWindow = About.GetInstance();
     this.aboutWindow.Show();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Handles the 1 event of the Window_Closed control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
 private void Window_Closed_1(object sender, EventArgs e)
 {
     instance = null;
 }