예제 #1
0
        private void baseStatSpinner_ValueChanged(object sender, EventArgs e)
        {
            Spinner spinner = (Spinner)sender;
            Label   label   = baseStatControlMap[spinner];

            int     baseStatValue = (int)spinner.Value;
            decimal decimalValue  = baseStatValue / 16384.0M;

            decimalValue = Math.Truncate(decimalValue * 100.0M) / 100.0M;
            label.Text   = decimalValue.ToString("F2");
        }
예제 #2
0
 private void HandleValueChanged( NumericUpDownWithDefault spinner, IList<UInt16> valuesToChange )
 {
     if (!ignoreChanges)
     {
         int i = int.Parse( (string)(spinner.Tag) );
         valuesToChange[i] = (ushort)spinner.Value;
     }
 }