示例#1
0
        /// <summary>
        /// This method prints the default check with respect to your assembly name, MessageLanguage and individual user settings
        /// </summary>
        public void Notify()
        {
            if (notified)
            {
                return;
            }

            notified = true;

            // ex. "You are using the latest version of [NAME]"
            Comms.Print(
                Translations.GetTranslation(
                    ("updater_" + (Success ? GitVersion == LocalVersion ? "updated" : "available" : "error")).Replace(
                        "[NAME]",
                        aName),
                    MessageLanguage));
        }
示例#2
0
        /// <summary>
        /// This method prints the default check with respect to your assembly name, MessageLanguage and individual user settings
        /// </summary>
        public void Notify()
        {
            string key;

            if (!this.Success)
            {
                key = "updater_failure";
            }
            else if (this.IsUpdated)
            {
                key = "updater_updated";
            }
            else
            {
                key = "updater_outdated";
            }

            Comms.Print(Creator.MainMenu.GetTranslation(key).Replace("[NAME]", this.assemblyName));
        }
示例#3
0
 public void Print(string translationKey)
 {
     Comms.Print(this.GetTranslation(translationKey));
 }