public CommandsFactory(ILogicForGUI Logic) { prototypes = new Dictionary <string, ICommand>(); prototypes["AddFigure"] = new AddFigure(Logic); prototypes["RemoveFigure"] = new RemoveFigure(Logic); prototypes["EditColor"] = new EditColor(Logic); prototypes["Transform"] = new Transform(Logic); prototypes["Union"] = new Union(Logic); prototypes["Intersection"] = new Intersection(Logic); prototypes["Difference"] = new Difference(Logic); prototypes["Pick"] = new Pick(Logic); //for nikita - korito prototypes["PickFromList"] = new PickFromList(Logic); prototypes["MoveIndex"] = new MoveIndex(Logic); prototypes["MoveLayer"] = new MoveLayer(Logic); prototypes["Save"] = new Save(Logic); prototypes["Load"] = new Load(Logic); prototypes["SaveSettings"] = new SaveSettings(Logic); prototypes["LoadSettings"] = new LoadSettings(Logic); prototypes["UnDo"] = new UnDo(Logic); prototypes["ReDo"] = new ReDo(Logic); prototypes["Copy"] = new Copy(Logic); prototypes["Paste"] = new Paste(Logic); prototypes["AddPrototipe"] = new AddPrototipe(Logic); }
CommandsFactory(ILogicForGUI Logic) { prototypes = new Dictionary <string, ICommand>(); prototypes["AddFigure"] = new AddFigure(Logic); prototypes["RemoveFigure"] = new RemoveFigure(Logic); prototypes["EditFigure"] = new EditFigure(Logic); prototypes["Transform"] = new Transform(Logic); prototypes["Union"] = new Union(Logic); prototypes["Intersection"] = new Intersection(Logic); prototypes["Difference"] = new Difference(Logic); prototypes["Pick"] = new Pick(Logic); prototypes["Save"] = new Save(Logic); prototypes["Load"] = new Load(Logic); prototypes["SaveSettings"] = new SaveSettings(Logic); prototypes["LoadSettings"] = new LoadSettings(Logic); prototypes["UnDo"] = new UnDo(Logic); prototypes["ReDo"] = new ReDo(Logic); prototypes["Copy"] = new Copy(Logic); prototypes["Paste"] = new Paste(Logic); prototypes["AddPrototipe"] = new AddPrototipe(Logic); }
public Load(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public Save(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public Pick(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public ClearList(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public AddFigure(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public Paste(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public ReDo(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public Transform(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public EditFigure(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public MoveLayer(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public MoveIndex(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public PickFromList(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public EditColor(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public SaveSettings(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public LoadSettings(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public Union(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public Copy(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public Intersection(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public AddPrototipe(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public Difference(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public RemoveFigure(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }
public GetIndexFromPick(ILogicForGUI Log) { Logic = (ILogicForCommand)Log; }