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