コード例 #1
0
        private void AddKeybinding(IntFilterParameterModel model, string value, ModificationType modType, Key key)
        {
            var val     = GetIntValue(value);
            var binding = new IntFilterParameterModel.IntParameterAction(val, modType);

            model.Keybindings[key] = binding;
        }
コード例 #2
0
        private void AddParameterAction(IntFilterParameterModel model, string value, ModificationType modType, ActionType actionType)
        {
            var val    = GetIntValue(value);
            var action = new IntFilterParameterModel.IntParameterAction(val, modType);

            model.Actions[actionType] = action;
        }
コード例 #3
0
 public IntFilterParameterViewModel(IntFilterParameterModel parameter)
     : base(parameter)
 {
     this.parameter = parameter;
     currentValue   = parameter.Value;
 }