TwoChatsHandlerAndAnother AddNewDialogHandler() { TwoChatsHandler dialog = new TwoChatsHandler( ChatsSettings, FactoryOfChatHandler.CreateChat1(ChatsSettings), FactoryOfChatHandler.CreateChat2(ChatsSettings) ); ///////////////////////// TwoChatsHandlerAndAnother newItem = new TwoChatsHandlerAndAnother(dialog); allDialogsList.Add(newItem); newItem.DoOnNextLoop = CommandToDoWithChat.Start; return(newItem); }
public TwoChatsHandlerAndAnother(TwoChatsHandler twoChatsHandler) { TwoChatsHandler = twoChatsHandler; }