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