public Arma2Updater()
 {
     Installer = new Arma2Installer();
     Installer.PropertyChanged += (sender, args) =>
     {
         if (args.PropertyName == "IsRunning")
         {
             PropertyHasChanged("InstallButtonVisible");
         }
         else if (args.PropertyName == "Status")
         {
             if (Installer.Status == "Install complete")
             {
                 CheckForUpdates();
             }
         }
     };
 }
Example #2
0
 public Arma2Updater()
 {
     Installer = new Arma2Installer();
     Installer.PropertyChanged += (sender, args) =>
     {
         if (args.PropertyName == "IsRunning")
         {
             PropertyHasChanged("InstallButtonVisible");
         }
         else if (args.PropertyName == "Status")
         {
             if (Installer.Status == DayZeroLauncherUpdater.STATUS_INSTALLCOMPLETE)
             {
                 CheckForUpdates(_lastPatchesJsonLoc);
             }
         }
     };
 }
 public Arma2Updater()
 {
     Installer = new Arma2Installer();
     Installer.PropertyChanged += (sender, args) =>
                                  	{
                                         if(args.PropertyName == "IsRunning")
                                         {
                                             PropertyHasChanged("InstallButtonVisible");
                                         }
                                         else if(args.PropertyName == "Status")
                                         {
                                             if(Installer.Status == "Install complete")
                                             {
                                                 CheckForUpdates();
                                             }
                                         }
                                  	};
 }