Exemplo n.º 1
0
        //Theme installieren und Revert verfügbar machen
        public virtual void StartInstallation()
        {
            CStatusWindow sw = new CStatusWindow(Catalog.GetString(String.Format("Installing \"{0}\"", Name)), installationSteps, false, false, true);

            sw.Mainlabel = Catalog.GetString("<i>Installing</i>\n\nYour selection is being downloaded and installed...please be" +
                                             " patient while the installation procedure proceeds. After everything's done, this" +
                                             " window will get closed.\n\n Have fun with your new theme, Greetings Tom");
            try{
                PreInstallation(sw);
                Installation(sw);
                PostInstallation(sw);
                sw.SetProgress(installationSteps + "/" + installationSteps);
                sw.Mainlabel = CConfiguration.txtInstallDone;
                sw.DetailProgressBar.Fraction = 1.0;
                sw.DetailProgressBar.Text     = Catalog.GetString("All changes have been applied");
                //Hint:It's enough to change the caption to the stock item!! No need for image transformations!
                sw.ButtonCaption = "gtk-ok";
            }
            catch (Exception ex) {
                sw.Close();
                CInfoWindow iw = new CInfoWindow("<b>" + Catalog.GetString("Theme installation failed!") + "</b>", Catalog.GetString("This message was reported from the installation function:\n\n"), Gtk.Stock.DialogError, true);
                iw.Description = ex.Message;
            }
        }
Exemplo n.º 2
0
 //Theme installieren und Revert verfügbar machen
 public virtual void StartInstallation()
 {
     CStatusWindow sw=new CStatusWindow(Catalog.GetString(String.Format("Installing \"{0}\"",Name)),installationSteps,false,false,true);
     sw.Mainlabel=Catalog.GetString("<i>Installing</i>\n\nYour selection is being downloaded and installed...please be"+
                                    " patient while the installation procedure proceeds. After everything's done, this"+
                                    " window will get closed.\n\n Have fun with your new theme, Greetings Tom");
     try{
         PreInstallation(sw);
         Installation(sw);
         PostInstallation(sw);
         sw.SetProgress(installationSteps+"/"+installationSteps);
         sw.Mainlabel=CConfiguration.txtInstallDone;
         sw.DetailProgressBar.Fraction=1.0;
         sw.DetailProgressBar.Text = Catalog.GetString("All changes have been applied");
         //Hint:It's enough to change the caption to the stock item!! No need for image transformations!
         sw.ButtonCaption = "gtk-ok";
     }
     catch (Exception ex) {
         sw.Close();
         CInfoWindow iw = new CInfoWindow("<b>"+Catalog.GetString("Theme installation failed!")+"</b>",Catalog.GetString("This message was reported from the installation function:\n\n"),Gtk.Stock.DialogError,true);
         iw.Description = ex.Message;
     }
 }