Пример #1
0
        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;
        }
Пример #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);
        }
Пример #3
0
 // Browse Action clicked
 private void browseaction_Click(object sender, EventArgs e)
 {
     action.Value = ActionBrowserForm.BrowseAction(this, action.Value);
 }