Exemple #1
0
        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;
        }
Exemple #3
0
 private void EhBaseControllerChanged(IMVCANDController ctrl)
 {
     OnMadeDirty();
 }
Exemple #4
0
 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();
 }