private void createButton_Click(object sender, EventArgs e)
 {
     IntValueDefinition v = new IntValueDefinition();
     v.Name = getNewName();
     values.Add(v);
     listBox.SelectedIndex = listBox.Items.Add(v.ToString());
 }
示例#2
0
 public override ValueDefinition Clone()
 {
     IntValueDefinition def = new IntValueDefinition();
     def.Name = Name;
     def.Default = Default;
     def.Min = Min;
     def.Max = Max;
     def.ShowSlider = ShowSlider;
     return def;
 }
        public IntValueDefinitionEditor(IntValueDefinition def)
        {
            this.def = def;
            InitializeComponent();
            Location = new Point(99, 53);

            defaultTextBox.Text = def.Default.ToString();
            minTextBox.Text = def.Min.ToString();
            maxTextBox.Text = def.Max.ToString();
            sliderCheckBox.Checked = def.ShowSlider;
        }
示例#4
0
        public override ValueDefinition Clone()
        {
            IntValueDefinition def = new IntValueDefinition();

            def.Name       = Name;
            def.Default    = Default;
            def.Min        = Min;
            def.Max        = Max;
            def.ShowSlider = ShowSlider;
            return(def);
        }