public CRForm(FailureHelper failureTracker) { mFailureTracker = failureTracker; InitializeComponent(); TargetProcessHelper.client = new System.Net.WebClient(); this.AcceptButton = credentialsBtn; TPsettings = new Properties.TP(); usernameTxtBox.Text = TPsettings.UserName; passwordTxtBox.Text = TPsettings.Password; button1.Enabled = true; }
private void seeStatusMessageToolStripMenuItem_Click(object sender, EventArgs e) { var node = treeListView1.SelectedNodes[0]; 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"); string msg = failureTracker.GetStatusMsg(GetSolutionName(), GetRuntimeVersion(), GetAutomationName()); StatusMessage msgForm = new StatusMessage(msg); msgForm.Show(); } }
private void acceptedFailureToolStripMenuItem_Click(object sender, EventArgs e) { var node = treeListView1.SelectedNodes[0]; 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", "AcceptedFailure"); AcceptedFailure acceptedFailureDialog = new AcceptedFailure(failureTracker); acceptedFailureDialog.Show(); acceptedFailureDialog.OnFormClosed += new AcceptedFailureDialogClosed(AcceptedFailureDialog_Closed); } }
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); } }
private void failureToolStripMenuItem_Click(object sender, EventArgs e) { var node = treeListView1.SelectedNodes[0]; 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", "Failure"); failureTracker.ProcessFailure("Unknown"); node.SubItems[1].Text = "\u2714"; node.SubItems[2].Text = " "; node.SubItems[3].Text = " "; MessageBox.Show("Successfully marked as Failure!", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public AcceptedFailure(FailureHelper failureTracker) { mFailureTracker = failureTracker; InitializeComponent(); this.AcceptButton = OkayBtn; }