private void AddPoint(object sender, RoutedEventArgs e)
        {
            GetNumberDialog dialog = new GetNumberDialog(mw, "", true);

            if (dialog.ShowDialog() == true)
            {
                points.Add(new Point(dialog.MultipleNumber[0], dialog.MultipleNumber[1]));
                lbPoint.Items.Add(points[points.Count - 1].X + "," + points[points.Count - 1].Y);
            }
        }
Ejemplo n.º 2
0
 private void lbColor_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (lbColor.SelectedIndex == -1)
     {
         return;
     }
     else
     {
         GetNumberDialog dialog = new GetNumberDialog(mw, "NewColorColon", false);
         if (dialog.ShowDialog() == true)
         {
             lbColor.Items[lbColor.SelectedIndex] = dialog.OneNumber.ToString();
         }
     }
 }