using System; namespace zero { namespace netboot { public partial class VersionDialog : Gtk.Window { public string oversion; public string nversion; protected virtual void OnButtonAcceptClicked (object sender, System.EventArgs e) { this.Hide(); zero.netboot.Core.getCore().isomanwidget.do_it_anyway=true; zero.netboot.Core.getCore().isomanwidget.only_installer=false; zero.netboot.Core.getCore().isomanwidget.CopyISOFile(); this.Destroy(); } public VersionDialog (string old_version, string new_version) : base(Gtk.WindowType.Toplevel) { this.Build (); labelMsg.Text=Mono.Unix.Catalog.GetString("Do you want to substitute ") + old_version + Mono.Unix.Catalog.GetString(" with ") + new_version + "?" + "\n\n" + Mono.Unix.Catalog.GetString("If you have installed any application on your Live ISO, you can choose to update\nonly the Network Installer and maintain applications on your system Live."); } protected virtual void OnButton69Clicked (object sender, System.EventArgs e) { this.Hide(); zero.netboot.Core.getCore().isomanwidget.do_it_anyway=false; zero.netboot.Core.getCore().isomanwidget.only_installer=false; zero.netboot.Core.getCore().isomanwidget.iso_found=false; this.Destroy(); } protected virtual void OnOnlyInstClicked (object sender, System.EventArgs e) { this.Hide(); zero.netboot.Core.getCore().isomanwidget.do_it_anyway=true; zero.netboot.Core.getCore().isomanwidget.only_installer=true; zero.netboot.Core.getCore().isomanwidget.CopyISOFile(); this.Destroy(); } } } }