Exemple #1
0
 public SetPropertyPartCommand(SnipPagePart part, T oldValue, T newValue, SetPropertyCore <T> setCoreMethod, PartAction action)
     : base(part, action)
 {
     _oldValue           = oldValue;
     _newValue           = newValue;
     this._setCoreMethod = setCoreMethod;
 }
Exemple #2
0
 public SetPropertyDesignerCommand(SnipPageDesigner designer, T oldValue, T newValue, SetPropertyCore <T> setCoreMethod, PartAction action)
 {
     this._designer      = designer;
     this._oldValue      = oldValue;
     this._newValue      = newValue;
     this._setCoreMethod = setCoreMethod;
     this._action        = action;
 }
Exemple #3
0
 public SetPropertyPartCommand(SnipPagePart part, T oldValue, T newValue, SetPropertyCore <T> setCoreMethod)
     : this(part, oldValue, newValue, setCoreMethod, PartAction.None)
 {
 }
Exemple #4
0
        public void AddExecSetPropertyDesignerCommand <T>(SnipPageDesigner designer, T oldValue, T newValue, SetPropertyCore <T> setCoreMethod, PartAction action)
        {
            SetPropertyDesignerCommand <T> cmd = new SetPropertyDesignerCommand <T>(designer, oldValue, newValue, setCoreMethod, action);

            cmd.Execute();
            AddCommand(cmd);
            Designer.IsModified = true;
        }
Exemple #5
0
 public void AddExecSetPropertyPartCommand <T>(SnipPagePart part, T oldValue, T newValue, SetPropertyCore <T> setCoreMethod)
 {
     AddExecSetPropertyPartCommand <T>(part, oldValue, newValue, setCoreMethod, PartAction.None);
 }