Exemplo n.º 1
0
        private void scriptTree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (e.Node.Parent == treeNode2)
            {
                ScriptFunctionDialog sfd = new ScriptFunctionDialog();
                sfd.ScriptStrings = sct.SctStr;
                sfd.ScriptFunctions = sct.Funcs;
                sfd.ScriptFunc = (Map.ScriptFunction)sct.Funcs[e.Node.Index];
                sfd.ShowDialog();
				treeNode2.Nodes.Clear();
				int i = 0;
				foreach (Map.ScriptFunction sf in sct.Funcs)
				{
					treeNode2.Nodes.Add(String.Format("{0}: {1}", i, sf.name));
					i++;
				}
            }
        }
Exemplo n.º 2
0
 private void menuItemStrings_Click(object sender, EventArgs e)
 {
     ScriptFunctionDialog strSd = new ScriptFunctionDialog();
     strSd.Scripts = map.Scripts;
     strSd.ShowDialog(this);
     map.Scripts = strSd.Scripts;
 }