//设置地图单元
        public static void configElement(VarElement elementT)
        {
            if (elementT == null)
            {
                Console.WriteLine("error in configElement");
                return;
            }
            manager = (VarsManager)elementT.parent;
            element = elementT;
            SmallDialog_NewVar_String dialog = new SmallDialog_NewVar_String("设置字符变量");

            dialog.textBox_name.Text  = element.name;
            dialog.textBox_Value.Text = (String)element.getValue();
            dialog.ShowDialog();
        }
Example #2
0
        //设置地图单元
        public static void configElement(VarElement elementT)
        {
            if (elementT == null)
            {
                Console.WriteLine("error in configElement");
                return;
            }
            manager = (VarsManager)elementT.parent;
            element = elementT;
            SmallDialog_NewVar_INT dialog = new SmallDialog_NewVar_INT("设置整型变量");

            dialog.textBox_name.Text         = element.name;
            dialog.numericUpDown_Value.Value = (int)element.getValue();
            dialog.ShowDialog();
        }