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; } }
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); } }