private void Browse_Click_UAT(object sender, EventArgs e) { // Displays an OpenFileDialog so the user can select a Cursor. OpenFileDialog ofd = new OpenFileDialog { //ofd.Filter = "Excel Files|*.xlsx"; Filter = "Excel Files|Panaya Exported Steps*.xlsx", Title = "(UAT) Select 'Panaya Exported Steps.xlsx'" }; //ofd.StartPosition = FormStartPosition.CenterScreen; if (ofd.ShowDialog() == DialogResult.OK) { groupbox_impl.Enabled = false; // Assign the cursor in the Stream to the Form's Cursor property. filepath_UAT_tb.Text = ofd.FileName; gen = new GenResults(filepath_UAT_tb.Text.Trim(), dept_tb.Text.Trim(), ppm_tb.Text.Trim(), cai_tb.Text.Trim(), datetime, this); gen.Populate(true); tests_listbox.Items.Clear(); testers_listbox.Items.Clear(); testers = gen.GetTesters(); PopulateLists(testers); gen.SetFilePath(pose_dir_tb.Text); groupbox_impl.Enabled = true; } }
public void SetGen_SetForm1Ref_PopComboBox(Form1 form1, GenResults gen, string selectedtester) { this.form1 = form1; this.gen = gen; testers = gen.GetTesters(); for (int i = 0; i < testers.Count; i++) { testers_combobox.Items.Add(testers[i].GetTester()); if (selectedtester == testers[i].GetTester()) { testers_combobox.SelectedIndex = testers_combobox.FindStringExact(selectedtester); } } }
private void Browse_Click_SIT(object sender, EventArgs e) { // Displays an OpenFileDialog so the user can select a Cursor. OpenFileDialog ofd = new OpenFileDialog { //openFileDialog1.Filter = "Excel Files|*.xlsx"; Filter = "Excel Files|Panaya Exported Steps*.xlsx", Title = "(SIT) Select 'Panaya Exported Steps.xlsx'" }; //ofd.StartPosition = FormStartPosition.CenterScreen; if (ofd.ShowDialog() == DialogResult.OK) { // Assign the cursor in the Stream to the Form's Cursor property. var filename = ofd.FileName; filepath_SIT_tb.Text = filename; gen_SIT = new GenResults(filepath_SIT_tb.Text, dept_tb.Text, ppm_tb.Text, cai_tb.Text, datetime, this); gen_SIT.Populate(false); } }
public void SetGen(Form1 form1, GenResults gen) { this.form1 = form1; this.gen = gen; }
public void SetGen(Form1 form1, GenResults gen, string newTester) { this.form1 = form1; this.gen = gen; this.newTester = newTester; }