Ejemplo n.º 1
0
 public override ValueDefinition Clone()
 {
     FloatValueDefinition def = new FloatValueDefinition();
     def.Name = Name;
     def.Default = Default;
     def.Min = Min;
     def.Max = Max;
     def.Round = Round;
     return def;
 }
        public FloatValueDefinitionEditor(FloatValueDefinition def)
        {
            this.def = def;
            InitializeComponent();
            Location = new Point(99, 53);

            defaultTextBox.Text = def.Default.ToString();
            roundTextBox.Text = def.Round.ToString();
            minTextBox.Text = def.Min.ToString();
            maxTextBox.Text = def.Max.ToString();
        }
Ejemplo n.º 3
0
        public override ValueDefinition Clone()
        {
            FloatValueDefinition def = new FloatValueDefinition();

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