示例#1
0
        /// <summary>
        /// Gets the instance.
        /// </summary>
        /// <returns></returns>
        public static BoxingPlot2D GetInstance()
        {
            if (instance == null)
            {
                instance = new BoxingPlot2D();
            }

            return instance;
        }
示例#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;
            }

        }
示例#3
0
 /// <summary>
 /// Handles the 1 event of the btnBoxingPlot_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 btnBoxingPlot_Click_1(object sender, RoutedEventArgs e)
 {
     this.boxingPlot2D = BoxingPlot2D.GetInstance();
     this.boxingPlot2D.Show();
 }
示例#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;
 }