/// <summary>
        /// Invokes if the 'Add Feature'-option in the context menu strip was clicked.
        ///
        /// This will open a dialog to create a new feature at the position where the
        /// context menu strip was placed.
        /// </summary>
        /// <param name="sender">Sender</param>
        /// <param name="e">Event</param>
        private void addFeatureToolStripMenuItem_Click(object sender, EventArgs e)
        {
            String featureName = this.currentNode == null ? null : this.currentNode.Text;

            NewFeatureDialog dlg = new NewFeatureDialog(featureName);

            dlg.ShowDialog();

            dataSaved = false;

            InitTreeView();
        }
Пример #2
0
        protected void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                TreeNode            tn = e.Node;
                ConfigurationOption f  = (ConfigurationOption)tn.Tag;
                String featureName     = (f == null ? null : f.Name);

                NewFeatureDialog dlg = new NewFeatureDialog(featureName);
                dlg.ShowDialog();

                InitTreeView();
            }
        }
        protected void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                TreeNode tn = e.Node;
                ConfigurationOption f = (ConfigurationOption)tn.Tag;
                String featureName = (f == null ? null : f.Name);

                NewFeatureDialog dlg = new NewFeatureDialog(featureName);
                dlg.ShowDialog();

                InitTreeView();
            }
        }
        /// <summary>
        /// Invokes if the 'Add Feature'-option in the context menu strip was clicked.
        /// 
        /// This will open a dialog to create a new feature at the position where the
        /// context menu strip was placed.
        /// </summary>
        /// <param name="sender">Sender</param>
        /// <param name="e">Event</param>
        private void addFeatureToolStripMenuItem_Click(object sender, EventArgs e)
        {
            String featureName = this.currentNode == null ? null : this.currentNode.Text;

            NewFeatureDialog dlg = new NewFeatureDialog(featureName);
            dlg.ShowDialog();

            dataSaved = false;

            InitTreeView();
        }