Ejemplo n.º 1
0
        private void nAEToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.treeSites.SelectedNode == null)
            {
                MessageBox.Show("Error: Please select a site to add the NAE to.");
                return;
            }
            else if (!(this.treeSites.SelectedNode.Tag is Site))
            {
                MessageBox.Show("Error: Please select a site to add the NAE to.");
            }

            FormHandler.AddNewNAEToTree(this.treeSites, this.treeSites.SelectedNode);
        }
Ejemplo n.º 2
0
        private void newNAEToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TreeNode node = this.treeSites.SelectedNode;

            FormHandler.AddNewNAEToTree(this.treeSites, node);
        }