예제 #1
0
        public void Perform()
        {
            var dialog = new OpenFileDialog
            {
                InitialDirectory = Directory.GetCurrentDirectory(),
                DefaultExt       = ".png"
            };
            var res = dialog.ShowDialog();

            if (res != DialogResult.OK)
            {
                return;
            }

            imageProcessor.SourcePath = dialog.FileName;
            imageProcessor.RecreateImage();
        }
예제 #2
0
 public void Perform()
 {
     new DrawingSettingsForm(settings).ShowDialog();
     imageProcessor.RecreateImage(settings);
 }