private void ChangeColor(BlackOrWhite blackOrWhite, bool saveSettings) { if (blackOrWhite == BlackOrWhite.Black && ColorSettings._CurrentColorTemplate != ColorSettings._BlackColorTemplate) { ColorSettings._CurrentColorTemplate = ColorSettings._BlackColorTemplate; ApplyColorSettingsFromServer(); if (this.PropertyChanged != null) { this.PropertyChanged(this, new PropertyChangedEventArgs("ColorTemplate")); } } else if (blackOrWhite == BlackOrWhite.White && ColorSettings._CurrentColorTemplate != ColorSettings._WhiteColorTemplate) { ColorSettings._CurrentColorTemplate = ColorSettings._WhiteColorTemplate; ApplyColorSettingsFromServer(); if (this.PropertyChanged != null) { this.PropertyChanged(this, new PropertyChangedEventArgs("ColorTemplate")); } } }
public void ChangeColor(BlackOrWhite blackOrWhite) { this.ChangeColor(blackOrWhite, true); }