Example #1
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;
            }

        }
Example #2
0
 /// <summary>
 /// Handles the 1 event of the btnConvergencePlot2D_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 btnConvergencePlot2D_Click_1(object sender, RoutedEventArgs e)
 {
     this.convergencePlot2DInstance = ConvergencePlot2D.GetInstance(core.GetBestResult().ToList(), core.GetMedianResult().ToList(), core.GetMaxIterations());
     this.convergencePlot2DInstance.Show();
 }