Example #1
0
        private void getNodeSymbolNameToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (_AppClient != null)
            {
                AppTestGenericInputForm aInput = new AppTestGenericInputForm();
                aInput.Text = "Get Node Symbol Name";
                aInput.SetItems(1);
                aInput.SetPrompt(0, "Index:");

                if (aInput.ShowDialog() == DialogResult.OK)
                {
                    int aIndex = 0;
                    if (int.TryParse(aInput.GetValue(0), out aIndex))
                    {
                        string aSymbolName = null;
                        string aDetails    = "null";

                        AppendToOutput("Get Node Symbol Name", true);
                        aSymbolName = _AppClient.GetNodeSymbolName(aIndex);

                        if (aSymbolName != null)
                        {
                            aDetails = aSymbolName;
                        }

                        AppendToOutput(aDetails, true);
                    }
                }
            }
        }