HasNewerVersion() public static méthode

public static HasNewerVersion ( ) : bool
Résultat bool
Exemple #1
0
 private static void UpdaterStateChanged(object sender, EventArgs e)
 {
     m_download_item.Visible = false;
     if (Updater.HasNewerVersion())
     {
         var text = string.Format(i18n.Text.Download,
                                  Updater.Get("Latest") ?? "");
         var url = Settings.IsInstalled() ? Updater.Get("Installer")
                                          : Updater.Get("Portable");
         if (url != null)
         {
             m_download_item.Visible = true;
             m_download_item.Text    = text;
             m_download_url          = url;
         }
     }
 }
Exemple #2
0
        private static string GetCurrentToolTip()
        {
            string ret = i18n.Text.DisabledToolTip;

            if (!Composer.IsDisabled())
            {
                ret = string.Format(i18n.Text.TrayToolTip,
                                    Settings.ComposeKeys.Value.FriendlyName,
                                    Settings.SequenceCount,
                                    Settings.Version);
            }

            if (Updater.HasNewerVersion())
            {
                ret += "\n" + i18n.Text.UpdatesToolTip;
            }

            return(ret);
        }
Exemple #3
0
 private System.Drawing.Icon GetCurrentIcon()
 {
     return(GetIcon((Composer.IsDisabled() ?     0x1 : 0x0) |
                    (Composer.IsComposing() ?    0x2 : 0x0) |
                    (Updater.HasNewerVersion() ? 0x4 : 0x0)));
 }