private void mergeFilesToolStripMenuItem_Click(object sender, EventArgs e) { if ((new Merge()).ShowDialog() == DialogResult.OK) { var jobStructures = new JobStructures(); structureList.MdiParent = this; structureList.Show(); } }
private void openShotFileToolStripMenuItem_Click(object sender, EventArgs e) { openFileDialog2.InitialDirectory = Application.StartupPath; if (openFileDialog2.ShowDialog() == DialogResult.OK) { File.LoadShotFile(openFileDialog2.FileName); var structureList = new JobStructures(); structureList.MdiParent = Program.StartScrn; structureList.Show(); } }
private void btn_Next_Click(object sender, EventArgs e) { if (txt_JobNumber.Text !="") { Program.CurrentJob = new Job(this.txt_JobNumber.Text.ToString()); JobStructures jobStructures = new JobStructures(); jobStructures.MdiParent = Program.StartScrn; jobStructures.Show(); result = DialogResult.OK; this.Dispose(); } else { txt_JobNumber.Clear(); MessageBox.Show("Please Enter a Job Number"); } }