private void btExample_Click(object sender, RoutedEventArgs e) { ImageShow showExample = new ImageShow(); showExample.imImage.Source = this.ToBitmapImage(Properties.Resources.example); showExample.Width = Properties.Resources.example.Width; showExample.Height = Properties.Resources.example.Height; showExample.ShowDialog(); }
private void btProcessing_Click(object sender, RoutedEventArgs e) { if (Properties.Settings.Default.CropMargin == new Thickness(0, 0, 0, 0)) { this.winMain.Width = 900; this.winMain.Height = 700; ImageShow showExample = new ImageShow(); showExample.imImage.Source = this.ToBitmapImage(Properties.Resources.example); showExample.Width = Properties.Resources.example.Width; showExample.Height = Properties.Resources.example.Height; showExample.ShowDialog(); } this.cnSettings.IsEnabled = false; this.cnSettings.Visibility = System.Windows.Visibility.Collapsed; this.cnResult.IsEnabled = false; this.cnResult.Visibility = System.Windows.Visibility.Collapsed; this.cnProcessing.IsEnabled = true; this.cnProcessing.Visibility = System.Windows.Visibility.Visible; }