private IApplyable Wrap(DisablablePairColorElement elem, string desc) { return new DisablablePairColorElementViewModel(desc, elem); }
public DisablablePairColorElementViewModel(string description, DisablablePairColorElement pelem) { this._description = description; this._lightViewModel = new DisablableColorElementViewModel(description, pelem.LightColor); this._darkViewModel = new DisablableColorElementViewModel(description, pelem.DarkColor); }
private void RefreshValue(DisablablePairColorElementViewModel vm, DisablablePairColorElement ce) { vm.LightViewModel.CPBViewModel.CurrentColor = ce.GetLightColor(); vm.DarkViewModel.CPBViewModel.CurrentColor = ce.GetDarkColor(); }