Пример #1
0
        private void startButton_Click(object sender, EventArgs e)
        {
            // If save file dialog result is okay, start process
            if (saveFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                // Store filename string
                String saveFile = this.saveFileDialog.FileName;
                //Save settings
                saveSettings();

                this.Hide();

                // Create progress window. it will auto-convert file.
                status s = new status(
                    sourceTextBox.Text,
                    openTextBox.Text, saveFile,
                    lineCheckBox.Checked, stepCheckBox.Checked,
                    noStudsCheckBox.Checked, noHollowCheckBox.Checked, noBottomCheckBox.Checked,
                    fileErrorCheckBox.Checked);

                this.Show();
            }
        }