예제 #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;
 }
예제 #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;
 }
예제 #3
0
 public SetPropertyPartCommand(SnipPagePart part, T oldValue, T newValue, SetPropertyCore <T> setCoreMethod)
     : this(part, oldValue, newValue, setCoreMethod, PartAction.None)
 {
 }
예제 #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;
        }
예제 #5
0
 public void AddExecSetPropertyPartCommand <T>(SnipPagePart part, T oldValue, T newValue, SetPropertyCore <T> setCoreMethod)
 {
     AddExecSetPropertyPartCommand <T>(part, oldValue, newValue, setCoreMethod, PartAction.None);
 }