Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
 private void GenDocs(object sender, EventArgs e)
 {
     (new FileInfo(pose_dir_tb.Text)).Directory.Create();
     gen.CreateApprovalDocXs();
     gen_SIT.SetFilePath(gen.GetFilePath());
     gen_SIT.SetRelease(gen.GetRelease());
     gen_SIT.CreateXLSX();
     Close();
 }