Exemple #1
0
 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);
 }
Exemple #2
0
 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);
 }