public CalculatorDashboard()
 {
     InitializeComponent();
     XNumericUpDown.Controls.RemoveAt(0);
     XNumericUpDown.ResetText();
     YNumericUpDown.Controls.RemoveAt(0);
     YNumericUpDown.ResetText();
     CaclulatedAreaNumericUpDown.Controls.RemoveAt(0);
     CaclulatedAreaNumericUpDown.Value = 0;
     ZoomNumericUpDown.Value           = 10;
 }
 private void AddPoint(CartesianCoordinates point)
 {
     if (PolygonAreaCalculator.Points.Contains(point))
     {
         MessageBox.Show("Points must be unique");
     }
     else
     {
         PolygonAreaCalculator.Points.Add(point);
         XNumericUpDown.ResetText();
         YNumericUpDown.ResetText();
     }
     RefreshForm();
     XNumericUpDown.Focus();
 }