public MainForm() { InitializeComponent(); if (Environment.GetCommandLineArgs().Length > 1) { Parse(); NextPicture(); } else { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Multiselect = true; if (openFileDialog.ShowDialog() == DialogResult.OK) { Parse(openFileDialog.FileNames); NextPicture(); } else { Application.Exit(); } } if (Settings.Default.FirstRun) { OptionsForm optionsForm = new OptionsForm(); optionsForm.ShowDialog(); Settings.Default.FirstRun = false; Settings.Default.Save(); } }
private void optionsButton_Click(object sender, EventArgs e) { OptionsForm optionsForm = new OptionsForm(); optionsForm.ShowDialog(); }