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; }
// Browse Action clicked private void browseaction_Click(object sender, EventArgs e) { action.Value = ActionBrowserForm.BrowseAction(this, action.Value); }