Esempio n. 1
0
 public MainMenu()
 {
     InitializeComponent();
     userPanel = new UserPanel();
     this.topMainPanel.Content = userPanel;
     mainPanel = new MainPanel();
     this.bottomMainPanel.Content = mainPanel;
 }
Esempio n. 2
0
 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);
 }