Example #1
0
 private void RenderNumeralSetting(Setting <int> setting)
 {
     Controls.NumeralSetting settingControl = new Controls.NumeralSetting(setting);
     settingControl.MouseEnter += ShowDescription;
     setting.Control            = settingControl;
     spControls.Children.Add(settingControl);
 }
Example #2
0
 private void SaveNumeralSetting(Setting <int> setting)
 {
     Controls.NumeralSetting settingControl = setting.Control as Controls.NumeralSetting;
     if (!settingControl.Validate())
     {
         valid = false;
     }
     else
     {
         setting.Value = settingControl.GetValue();
     }
 }