private void FillCrForm(CRForm LogBugCRDialog) { string solution = GetSolutionName(); char[] delimeters = { '_' }; string[] text = solution.Split(delimeters); string platform = text[0]; LogBugCRDialog.NameTxtBox.Text = solution + " " + GetAutomationName(); LogBugCRDialog.NAStxtBox.Text = @"\\10.0.1.23\Dev_QA\Automated Tests\Tests\" + platform + @"\" + solution + "_Debug.OpenSpan"; LogBugCRDialog.richTextBox1.Text = GetFailureMsg(); }
private void bugToolStripMenuItem_Click(object sender, EventArgs e) { var node = treeListView1.SelectedNodes[0]; //if it's a failure it will have 4 subitems (for now) if (node.SubItems.Count != 6) { MessageBox.Show("Please Select a Failure Node", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { FailureHelper failureTracker = new FailureHelper(DbAddressTxt.Text, PortTxt.Text, DbNameTxt.Text, GetSolutionName(), GetRuntimeVersion(), GetAutomationName(), "False", "Bug"); CRForm crform = new CRForm(failureTracker); crform.OnFormClosed += new CRFormClosed(CRForm_Closed); crform.Show(); FillCrForm(crform); } }