public MainMenu() { InitializeComponent(); userPanel = new UserPanel(); this.topMainPanel.Content = userPanel; mainPanel = new MainPanel(); this.bottomMainPanel.Content = mainPanel; }
public RoomWindow(Room room) { this.room = room; InitializeComponent(); userPanel = new UserPanel(); this.topMainPanel.Content = userPanel; this.InfoText.Content = room; PokerTable.room = room; PokerTable.UpdateChairs(); this.gameLog = new ObservableCollection <string>(); GameLog.DataContext = gameLog; Chat.DataContext = room.Chat.GetMessages(); Service.Instance.AddPlayerToRoom(room.Id + "", MainInfo.Instance.Player.Username); MsgBox.KeyDown += new KeyEventHandler(MsgBox_KeyDown); }