public static void ShowUpdateWindow(string gameTitle, string optionalGameVersion, string optionalUpdateURL) { var updateWindow = new UpdateWindow(gameTitle, optionalGameVersion, optionalUpdateURL); updateWindow.ShowAll(); Application.Run(); }
private void Build() { this.Title = "Select Game"; this.BorderWidth = 6; this.WindowPosition = WindowPosition.Center; this.TypeHint = Gdk.WindowTypeHint.Dialog; var vbox = new VBox(false, 4); //var label = new Label (); //label.Text = "Checking for updates..."; //vbox.PackStart (label, false, false, 0 ); var combo = new ComboBox(Installer.GetInstalledGames()); combo.Active = 0; vbox.PackStart(combo, false, false, 0); var button = new Button(); button.Label = "Launch"; button.Clicked += delegate(object sender, EventArgs args) { this.HideAll(); var updateWindow = new UpdateWindow(combo.ActiveText, null, null); updateWindow.ShowAll(); }; vbox.PackStart(button, false, false, 0); this.Add(vbox); this.SetDefaultSize(300, 100); this.SetSizeRequest(300, -1); this.Resizable = false; this.Shown += OnShown; this.DeleteEvent += OnDeleteEvent; }
private void Build() { this.Title = "Select Game"; this.BorderWidth = 6; this.WindowPosition = WindowPosition.Center; this.TypeHint = Gdk.WindowTypeHint.Dialog; var vbox = new VBox( false, 4 ); //var label = new Label (); //label.Text = "Checking for updates..."; //vbox.PackStart (label, false, false, 0 ); var combo = new ComboBox( Installer.GetInstalledGames() ); combo.Active = 0; vbox.PackStart( combo, false, false, 0 ); var button = new Button (); button.Label = "Launch"; button.Clicked += delegate( object sender, EventArgs args ) { this.HideAll(); var updateWindow = new UpdateWindow( combo.ActiveText, null, null ); updateWindow.ShowAll(); }; vbox.PackStart( button, false, false, 0 ); this.Add( vbox ); this.SetDefaultSize( 300, 100 ); this.SetSizeRequest( 300, -1 ); this.Resizable = false; this.Shown += OnShown; this.DeleteEvent += OnDeleteEvent; }
public static void ShowUpdateWindow( string gameTitle, string optionalGameVersion, string optionalUpdateURL ) { var updateWindow = new UpdateWindow( gameTitle, optionalGameVersion, optionalUpdateURL ); updateWindow.ShowAll(); Application.Run(); }