Azavea.NijPredictivePolicing.AcsAlchemistGui.MainForm.saveJobFileToolStripMenuItem_Click C# (CSharp) Method

saveJobFileToolStripMenuItem_Click() private method

private saveJobFileToolStripMenuItem_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void saveJobFileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (saveFileJob.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                if (string.IsNullOrEmpty(saveFileJob.FileName))
                {
                    MessageBox.Show("No file provided", "Unable to save job file");
                    return;
                }

                // if it's not cancelled
                txtJobFilePath.Text = saveFileJob.FileName;
                this.GatherInputs(true);        //gather all the settings
                FormController.Instance.JobInstance.SaveJobFile(txtJobFilePath.Text);
            }
        }