private void getNodeTypeToolStripMenuItem_Click(object sender, EventArgs e) { if (_AppClient != null) { AppTestGenericInputForm aInput = new AppTestGenericInputForm(); aInput.Text = "Get Node Type"; aInput.SetItems(1); aInput.SetPrompt(0, "Index:"); if (aInput.ShowDialog() == DialogResult.OK) { int aIndex = 0; if (int.TryParse(aInput.GetValue(0), out aIndex)) { string aNodeType = null; string aDetails = "null"; AppendToOutput("Get Node Type", true); aNodeType = _AppClient.GetNodeType(aIndex); if (aNodeType != null) { aDetails = aNodeType; } AppendToOutput(aDetails, true); } } } }