예제 #1
0
 public DayZUpdater()
 {
     Installer = new DayZInstaller();
     Installer.PropertyChanged += (sender, args) =>
     {
         if (args.PropertyName == "IsRunning")
         {
             PropertyHasChanged("InstallButtonVisible");
         }
         else if (args.PropertyName == "Status")
         {
             if (Installer.Status == "Install complete")
             {
                 CheckForUpdates();
             }
         }
     };
 }
예제 #2
0
		public DayZUpdater()
		{
			Installer = new DayZInstaller();
			Installer.PropertyChanged += (sender, args) =>
			                             	{
												if(args.PropertyName == "IsRunning")
												{
													PropertyHasChanged("InstallButtonVisible");
												}
												else if(args.PropertyName == "Status")
												{
													if(Installer.Status == "Install complete")
													{
														CheckForUpdates();
													}
												}
			                             	};
		}