예제 #1
0
 public void Set(IntegerUnit value)
 {
     ignore_changes = true;
     TextValue.Text = value.Value.ToString(CultureInfo.InvariantCulture);
     if (value.Unit == UNIT.mm)
         UnitValue.SelectedIndex = 0;
     else
         UnitValue.SelectedIndex = 1;
     ignore_changes = false;
 }
예제 #2
0
 public void Set(IntegerUnit value)
 {
     ignore_changes = true;
     TextValue.Text = value.Value.ToString(CultureInfo.InvariantCulture);
     if (value.Unit == UNIT.mm)
     {
         UnitValue.SelectedIndex = 0;
     }
     else
     {
         UnitValue.SelectedIndex = 1;
     }
     ignore_changes = false;
 }