Пример #1
0
        public ButtonSettingsCommand(ISettingsManager manager, AbstractModel model, SettingsLink wrapper)
            : base(model)
        {
            if (wrapper == null)
                throw new Exception("Expected settings link wrapper");

            _manager = manager;
            _model = model;
            _key = wrapper.Target;
            _value = wrapper.Value;
        }
Пример #2
0
 public ModifySettingsModel(AbstractDialogModel model, ISettingsManager manager, SettingsLink wrapper)
     : base(model)
 {
     _manager = manager;
     _wrapper = wrapper;
 }