コード例 #1
0
 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;
 }
コード例 #3
0
        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);
        }