Esempio n. 1
0
 private void OpenImage_Click(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.OpenFileDialog ofd = new System.Windows.Forms.OpenFileDialog();
     ofd.Filter           = "png files (*.png)|*.png|All files (*.*)|*.*";
     ofd.RestoreDirectory = true;
     if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         img.Source = new BitmapImage(new Uri(ofd.FileName));
         string fullName = ofd.FileName;
         FileName      = fullName.Substring(fullName.LastIndexOf("\\") + 1, (fullName.LastIndexOf(".") - fullName.LastIndexOf("\\") - 1));
         CurrentStatus = ControlFlowEnum.PlacingDot;
     }
 }
Esempio n. 2
0
 public ControlFlow(ControlFlowEnum value)
 {
     Value = value;
 }
Esempio n. 3
0
 private void DotGenerationComplete_Click(object sender, RoutedEventArgs e)
 {
     CurrentStatus = ControlFlowEnum.DotsForShape;
 }
Esempio n. 4
0
 private void DotGenerationReset_Click(object sender, RoutedEventArgs e)
 {
     CurrentStatus = ControlFlowEnum.PlacingDot;
 }