예제 #1
0
 void ChangeTime(NumericUpDown x, MaskedTextBox y)
 {
     try
     {
         if (x.Value == 0) return;
         Time t = new Time(0, y.Text);
         t.rawMinutes = Math.Min(Classes.Time.HOUR_MASK, Math.Max(0, t.raw() + (int)x.Value));
         y.Text = t.ToMilitaryTimeString();
         x.Value = 0;
     }
     catch { }
 }