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; } }
public ControlFlow(ControlFlowEnum value) { Value = value; }
private void DotGenerationComplete_Click(object sender, RoutedEventArgs e) { CurrentStatus = ControlFlowEnum.DotsForShape; }
private void DotGenerationReset_Click(object sender, RoutedEventArgs e) { CurrentStatus = ControlFlowEnum.PlacingDot; }