public DownloadMenu() { InitializeComponent(); gameTextBlockPrefab = XamlWriter.Save(GameListTextTemplate); dwManager = Library.client.downloadManager; NavBar.SetMode(Controls.NavBar.Modes.Download); if (dwManager == null || dwManager.queue.Count == 0) { Debug.Log("Nothing to show here"); //PageManager.SetPage(new EmptyDownloadMenu().Content); SetEmptyMenu(); return; } //SetValues(); if (updatePercentageThread != null) { if (updatePercentageThread.IsAlive) { stopThread = true; updatePercentageThread.Join(); stopThread = false; } } updatePercentageThread = new Thread(UpdatePercentageThread); updatePercentageThread.Start(); }
public Store() { InitializeComponent(); bool firstRun = false; if (client == null) { firstRun = true; } client = App.storeClient; originalIcon = GameIcon.Source; gameTextBlockPrefab = XamlWriter.Save(GameListTextTemplate); //string libraryStr = client.RecquestLibrary(); //TextBlock newButton = new TextBlock(); //newButton.Text = "Fortnite"; //newButton.MouseLeftButtonDown += OnGameTextClick; NavBar.SetMode(Controls.NavBar.Modes.Store); gamesSPGamesStartIndex = GamesSP.Children.Count; Library.GetUserInfo(true); GetGamesList(firstRun); CoinsNumberText.Text = Library.userInfo.coins.ToString(); if (CoinsNumberText.Text == "Free") { CoinsNumberText.Text = "0"; } if (minPriceFilter >= 0) { MinimumPriceFilterBox.Text = minPriceFilter.ToString(); } if (maxPriceFilter >= 0) { MaximumPriceFilterBox.Text = maxPriceFilter.ToString(); } //client.DownloadGame(0, userInfo.token); }
public AdminUserMenu() { InitializeComponent(); NavBar.SetMode(Controls.NavBar.Modes.Admin); gamePrefab = XamlWriter.Save(GameButtonTemplate); GamesSP.Children.Clear(); RequestUser(0); //UpdateUserDisplay(); //Debug.Log("Command response: " + response); if (targetUser == null) { Debug.LogError("Target user is null"); return; } Debug.Log("Target user: " + targetUser.userName); }
public AdminVoucherMenu() { InitializeComponent(); NavBar.SetMode(Controls.NavBar.Modes.Admin); //RequestUser(0); //UpdateUserDisplay(); //Debug.Log("Command response: " + response); /*if (targetUser == null) * { * Debug.LogError("Target user is null"); * return; * } * Debug.Log("Target user: " + targetUser.userName);*/ voucherPrefab = XamlWriter.Save(VoucherButtonTemplate); VouchersSP.Children.Clear(); RefreshVouchersList(); }
public EmptyDownloadMenu() { InitializeComponent(); NavBar.SetMode(Controls.NavBar.Modes.Download); }
public AdminMenu() { InitializeComponent(); NavBar.SetMode(Controls.NavBar.Modes.Admin); }