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(); }
public void Perform() { new DrawingSettingsForm(settings).ShowDialog(); imageProcessor.RecreateImage(settings); }