/// <summary>
        /// Updates the label execute.
        /// </summary>
        void UpdateLabelExecute()
        {
            var tupleResults = solveTuple.ResultsTuple(UpdateTextBox);

            UpdateLabel = tupleResults.Item1;
            double a, b, c;

            a = solveTuple.a;
            b = solveTuple.b;
            c = solveTuple.c;

            listViewCollection.Add(new ListViewData {
                ListView_No           = indexHistory.ToString(),
                ListView_a            = a.ToString(),
                ListView_b            = b.ToString(),
                ListView_c            = c.ToString(),
                ListView_Discriminant = solveTuple.Discriminant.ToString(),
                ListView_x1           = tupleResults.Item2,
                ListView_x2           = tupleResults.Item3,
                ListView_Datetime     = DateTime.Now
            });

            indexHistory++;


            if (ClearEnable == true)
            {
                DataPlot.Clear();   //clears old collection before drawing new collection
            }

            DrawingCollecionLambdaExpressionWithAllCoefficients(a, b, c);
            ClearEnable = true;
        }
Exemplo n.º 2
0
 public void ClearGraph()
 {
     DataPlot.Clear();
 }