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

                if (aInput.ShowDialog() == DialogResult.OK)
                {
                    int aIndex = 0;
                    if (int.TryParse(aInput.GetValue(0), out aIndex))
                    {
                        AppendToOutput("Get Node Actions", true);
                        string[] aActions = _AppClient.GetNodeActions(aIndex);

                        if (aActions != null)
                        {
                            foreach (string aAction in aActions)
                            {
                                AppendToOutput(aAction, true);
                            }
                        }
                        else
                        {
                            AppendToOutput("null", true);
                        }
                    }
                }
            }
        }