예제 #1
0
        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();
            }
        }
예제 #2
0
 private void optionsButton_Click(object sender, EventArgs e)
 {
     OptionsForm optionsForm = new OptionsForm();
     optionsForm.ShowDialog();
 }