private void maction_Click(object sender, EventArgs e)
        {
            TreeNode  node;
            MacroData data;

            if (mtree.SelectedNode == null)
            {
                return;
            }

            if (mtree.SelectedNode.Parent != null)
            {
                return;
            }

            node = mtree.SelectedNode.Nodes.Add("Action");
            mtree.ExpandAll();
            mtree.Focus();

            data       = new MacroData();
            data.batch = 0;
            data.type  = ActionBrowserForm.BrowseAction(this, action.Value);
            data.tag   = 0;

            node.Text = data.SetName();
            node.Tag  = data;
        }
Beispiel #2
0
        }                                                                                                                     //mxd

        public static int BrowseAction(IWin32Window owner, int action, bool addanyaction)
        {
            ActionBrowserForm f = new ActionBrowserForm(action, addanyaction);

            if (f.ShowDialog(owner) == DialogResult.OK)
            {
                action = f.SelectedAction;
            }
            f.Dispose();
            return(action);
        }
Beispiel #3
0
 // Browse Action clicked
 private void browseaction_Click(object sender, EventArgs e)
 {
     action.Value = ActionBrowserForm.BrowseAction(this, action.Value);
 }