/// <summary> /// Gets the instance. /// </summary> /// <returns></returns> public static ConvergencePlot2D GetInstance(List<double> bestList, List<double> medianResult, int max) { bestDrawList = bestList; medianDrawList = medianResult; maxIterations = max; if (instance == null) { instance = new ConvergencePlot2D(); } return instance; }
/// <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; }