Пример #1
0
 //Constructors
 public ClipboardCommand(Controller controller) : base(controller)
 {
     if (controller == null)
     {
         throw new ArgumentNullException();
     }
     _modelMomento = new ModelMomento(controller.Model);
     _modelMomento.WriteItem(controller.Model);
 }
Пример #2
0
 //Constructors
 public ModelCommand(Model model, Controller controller) : base(controller)
 {
     _modelMomento = new ModelMomento(model);
 }