protected virtual void CheckUpdate(Uri url, RaiserLanguageName langName, bool force)
        {
            if (!this.IsBusy)
            {
                this.IsBusy = true;
                if (MySettings.MinimizeNetworkUsage)
                {
                    this.myWebClient_ForAIDA.CacheStorage = CacheStorage.DefaultStorage;
                }
                else
                {
                    this.myWebClient_ForAIDA.CacheStorage = null;
                }

                if (langName == RaiserLanguageName.Auto || langName == RaiserLanguageName.AllPatch)
                {
                    langName = MySettings.Patches.PatchLanguage;
                }

                this.OnCurrentStepChanged(new StepEventArgs(string.Format(LanguageManager.GetMessageText("Checking0PatchUpdate", "Checking for {0} updates"), Infos.DefaultValues.AIDA.Strings.RaiserPatchCalled)));
                this.OnProgressBarStateChanged(new ProgressBarStateChangedEventArgs(Forms.MyMainMenu.ProgressBarVisibleState.Infinite));
                this.myWebClient_ForAIDA.DownloadStringAsync(url, new RaiserWebClientInstallingMetaWrapper(1, new InstallingMeta(true, force), langName));
            }
        }
 public RaiserPatchNotificationEventArgs(string currentPatch, RaiserLanguageName langName) : this(false, string.Empty, currentPatch, false, langName)
 {
 }
 public void CheckUpdate(RaiserLanguageName lang)
 {
     //this.CheckUpdate(new Uri(AIDA.WebPatches.PatchesInfos), false);
     this.CheckUpdate(new Uri(Infos.DefaultValues.AIDA.Tweaker.TransArmThingiesOrWatever.RaiserURL), lang, false);
 }
 public RaiserPatchNotificationEventArgs(bool isnew, string newpatchstring, string currentPatch, RaiserLanguageName langName) : this(isnew, newpatchstring, currentPatch, true, langName)
 {
 }
 public RaiserPatchNotificationEventArgs(bool isnew, string newpatchstring, string currentPatch, bool createBackup, RaiserLanguageName langName) : base(isnew, newpatchstring, currentPatch, createBackup)
 {
     this.Language = langName;
 }
 public static RaiserLanguageCode GetLangCode(RaiserLanguageName langName)
 {
     return((RaiserLanguageCode)((int)langName));
 }
 public RaiserWebClientInstallingMetaWrapper(short sStep, InstallingMeta oMeta, RaiserLanguageName langName) : base(sStep, oMeta)
 {
     this.LanguageName = langName;
 }
 public void ReinstallPatch(RaiserLanguageName langName)
 {
     this.CheckUpdate(new Uri(Classes.AIDA.WebPatches.PatchesInfos), langName, true);
 }