private void EhMadeDirty(IMVCANDController ctrl) { var prop = GetPropertyForController(ctrl); prop.Value = ctrl.ProvisionalModelObject; OnMadeDirty(); }
private void EhController_Dirty(IMVCANDController ctrl) { var color = (AxoColor)ctrl.ModelObject; color.IsFromArgb = true; _doc = new NamedColor(color); _view?.SetNewColor(color); _view.ColorName = _doc.Name; }
private void EhBaseControllerChanged(IMVCANDController ctrl) { OnMadeDirty(); }
private void EhDetailsChanged(IMVCANDController ctrl) { _detailController.Apply(false); // we use the instance directly, thus no further taking of the instance is neccessary here _doc = (IColorProvider)(_detailController.ModelObject); CreateAndSetPreviewBitmap(); }