protected override void Initialize() { IsMouseVisible = true; Window.AllowUserResizing = true; Window.ClientSizeChanged += new EventHandler <EventArgs>(Window_ClientSizeChanged); Globals.screenWidth = 800; Globals.screenHeight = 500; graphics.PreferredBackBufferWidth = (int)Globals.screenWidth; graphics.PreferredBackBufferHeight = (int)Globals.screenHeight; graphics.ApplyChanges(); base.Initialize(); fb = new OpenFolderButton(); sb = new ScrollBar(); }
private void endInstallation(string reason, bool failed) { InstallProgress.Value = 100; BetaRadio.Hide(); InstallButton.Hide(); UninstallButton.Hide(); UpdateButton.Hide(); ReinjectButton.Hide(); StatusText.Hide(); StatusLabel.Show(); StatusLabel.Text = operation == "UPDATE" ? "Update " + (failed ? "failed" : "complete") : (operation == "UNINSTALL" ? "Unin" : "In") + "stallation " + (failed ? " failed." : "completed!"); StatusLabel.ForeColor = failed ? Color.Red : Color.Lime; StatusLabel2.Show(); StatusLabel2.Text = reason; StatusCloseButton.Show(); if (platform != "Linux") { OpenFolderButton.Show(); } }