public LetterOnLetter() { InitializeComponent(); numberOfFields = 12; foreach (Button b in Finder.FindVisualChildrenWithTag <Button>(LetterOnLetterGrid, "CharacterDisplayButton")) { b.Click += selectHandler; } lolGameBehavior = new LoLControlerFactory(LetterOnLetterGrid).GetControler(); SetGame(lolGameBehavior as Game); commandManager = new CommandManager(); feedbackCommand = new FeedbackCommand(lolGameBehavior); UncoverCommand.ResetCount(); uncoverCommand = new UncoverCommand(lolGameBehavior); startCommand = new StartCommand(lolGameBehavior); confirmCommand = new ConfirmCommand(lolGameBehavior); state = LoLState.Stop; }
private void start() { commandManager.ExecuteCommand(startCommand); state = LoLState.Submit; }