private void InitComands() { foreach (var B in UIComponents) { MLocalCommands.Add((B as Button).InvokeCommand, B.InvokeAccept); } this.Resume(); }
private void InitControls() { MLocalCommands.Add(Comands.Left, GeneralMove); MLocalCommands.Add(Comands.TenStepsLeft, GeneralMove); MLocalCommands.Add(Comands.Right, GeneralMove); MLocalCommands.Add(Comands.TenStepsRight, GeneralMove); MLocalCommands.Add(Comands.Up, GeneralMove); MLocalCommands.Add(Comands.TenStepsUp, GeneralMove); MLocalCommands.Add(Comands.Down, GeneralMove); MLocalCommands.Add(Comands.TenStepsDown, GeneralMove); MLocalCommands.Add(Comands.GenerateALotOfRooms, GenerateRooms); MLocalCommands.Add(Comands.GenerateOneRoom, GenerateRooms); MLocalCommands.Add(Comands.GenerateRandomPath, GeneratePath); foreach (var Comm in MLocalCommands) { Comand.Add(Comm.Key, Comm.Value); } }