private void delayValue_ValueChanged(ModernWpf.Controls.NumberBox sender, ModernWpf.Controls.NumberBoxValueChangedEventArgs args) { if (args.NewValue != ActiveSettings.current.DelayPickBanValue) { Logging.Verbose($"Champ select delay changed to {args.NewValue}"); ActiveSettings.current.DelayPickBanValue = args.NewValue; Properties.Settings.Default.DelayPBValue = args.NewValue; } }
private void ScoreChanged(ModernWpf.Controls.NumberBox sender, ModernWpf.Controls.NumberBoxValueChangedEventArgs args) { TeamConfig config = (string)sender.Tag == "Blue" ? BroadcastHubController.ClientConfig.frontend.blueTeam : BroadcastHubController.ClientConfig.frontend.redTeam; if (args.NewValue != config.score) { config.score = (int)args.NewValue; BroadcastHubController.UpdateConfig(); } }