public PreGameDeckGUIModel(int ID_, string DeckName_, GUIPages.GUIPreGameRoom parent_) { Parent = parent_; ID = ID_; DeckName = DeckName_; // Border Border = new Border(); Border.Width = 429; Border.BorderBrush = System.Windows.Media.Brushes.Transparent; Border.BorderThickness = new Thickness(3); Border.Margin = new Thickness(0, 10, 0, 0); // Button Style style = Parent.FindResource("buttonStyle") as Style; btn = new Button(); btn.Style = style; btn.Content = DeckName; btn.Cursor = System.Windows.Input.Cursors.Hand; btn.Opacity = 0.8; btn.Background = System.Windows.Media.Brushes.Black; btn.Foreground = System.Windows.Media.Brushes.LightGoldenrodYellow; btn.FontSize = 25; btn.Height = 45; btn.Width = 423; btn.HorizontalAlignment = HorizontalAlignment.Center; btn.Click += Btn_Click; Border.Child = btn; }
public PreGameRoomController(GUIPages.GUIPreGameRoom _parent, Communication _com) { parent = _parent; com = _com; loadedDataChecklist = new List <bool>() { false }; Decks = new List <PreGameDeckListElement>(); }
// PRE GAME ROOM internal void loadPreGameRoom(int GameRoomID, string OwnNickName, string OppNickName) { GUIpreGameRoom = new GUIPages.GUIPreGameRoom(this, com, GameRoomID, OwnNickName, OppNickName); List <string> loadedDataChecklistTitles = new List <string>() { "Fetching Decks" }; GUIloading = new GUIPages.GUILoading(GUIpreGameRoom.BackgroundImageSource, loadedDataChecklistTitles, GUIpreGameRoom.getLoadedDataChecklist()); MainFrame.Content = GUIloading; currentPageID = 3; loadPage.Start(); }