/// <summary> /// возвращает ноывй экземпляр класса указанного сервера /// </summary> /// <returns></returns> public Otit createOtit() { switch (botwindow.getParam()) { case "C:\\America\\": otit = new OtitAmerica(botwindow); break; case "C:\\Europa\\": otit = new OtitEuropa(botwindow); break; case "C:\\Europa2\\": otit = new OtitEuropa2(botwindow); break; case "C:\\SINGA\\": otit = new OtitSing(botwindow); break; case "C:\\America2\\": otit = new OtitAmerica2(botwindow); break; default: otit = new OtitSing(botwindow); break; } return(otit); }
public StateGT751(botWindow botwindow) { this.botwindow = botwindow; OtitFactory otitFactory = new OtitFactory(botwindow); this.otit = otitFactory.createOtit(); DialogFactory dialogFactory = new DialogFactory(botwindow); this.dialog = dialogFactory.createDialog(); this.tekStateInt = 751; }
public StateGT078(botWindow botwindow) { this.botwindow = botwindow; ServerFactory serverFactory = new ServerFactory(botwindow); this.server = serverFactory.create(); // создали конкретный экземпляр класса server по паттерну "простая Фабрика" (Америка, Европа или Синг) OtitFactory otitFactory = new OtitFactory(botwindow); this.otit = otitFactory.createOtit(); this.tekStateInt = 78; }
public StateGT075(botWindow botwindow) //, GotoTrade gototrade) { this.botwindow = botwindow; OtitFactory otitFactory = new OtitFactory(botwindow); this.otit = otitFactory.createOtit(); DialogFactory dialogFactory = new DialogFactory(botwindow); this.dialog = dialogFactory.createDialog(); this.tekStateInt = 75; }
public DriversOfState(int numberOfWindow) { this.botwindow = new botWindow(numberOfWindow); ServerFactory serverFactory = new ServerFactory(botwindow); this.server = serverFactory.create(); // создали конкретный экземпляр класса server по паттерну "простая Фабрика" (Америка, Европа или Синг) OtitFactory otitFactory = new OtitFactory(botwindow); this.otit = otitFactory.createOtit(); this.botParam = new BotParam(numberOfWindow); //сделали экземпляр класса }
public StateGT086(botWindow botwindow) //, GotoTrade gototrade) { this.botwindow = botwindow; ServerFactory serverFactory = new ServerFactory(botwindow); this.server = serverFactory.create(); // создали конкретный экземпляр класса server по паттерну "простая Фабрика" (Америка, Европа или Синг) OtitFactory otitFactory = new OtitFactory(botwindow); this.otit = otitFactory.createOtit(); DialogFactory dialogFactory = new DialogFactory(botwindow); this.dialog = dialogFactory.createDialog(); this.tekStateInt = 86; }