private void OnSaveButtonClicked(object sender, EventArgs e) { CStatusWindow sw = new CStatusWindow(Catalog.GetString("Downloading the theme"), 1, false, true, true); sw.ExtInfoLabel = Catalog.GetString("Download location") + ": " + config.ThemesDownloadPath; sw.ButtonSensitive = false; try{ man.Theme.GetThemeFile(sw, config.ThemesDownloadPath); sw.Close(); } catch (Exception ex) { sw.Close(); new CInfoWindow(Catalog.GetString("Error") + ":" + Catalog.GetString("Download failed!"), ex.Message, Gtk.Stock.DialogError, true); } }
private void OnPreviewButtonClicked(object sender, EventArgs e) { CStatusWindow sw = new CStatusWindow(Catalog.GetString("Downloading the preview file"), 1, false, true, true); sw.SetProgress("1/1 - " + Catalog.GetString("Connected to art.gnome.org")); sw.Mainlabel = Catalog.GetString("<i>Downloading the preview file</i>\n\nYour preview is being downloaded. After the download has been finished," + " the preview will be rescaled if it's not fitting the preview window. See the lower bar to follow the progress."); sw.ButtonSensitive = false; try{ man.Theme.GetPreviewImage(sw.DetailProgressBar); sw.Close(); new CPreviewWindow(man.Theme, true); } catch (Exception ex) { sw.Close(); new CInfoWindow(Catalog.GetString("Error: the preview image could not be loaded!"), ex.Message, Gtk.Stock.DialogError, true); } }