Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Launchpad_Launcher.GameHandler"/> class.
        /// </summary>
        public GameHandler()
        {
            ProgressArgs = new FileDownloadProgressChangedEventArgs ();
            DownloadFinishedArgs = new GameDownloadFinishedEventArgs ();
            UpdateFinishedArgs = new GameUpdateFinishedEventArgs ();
            RepairFinishedArgs = new GameRepairFinishedEventArgs ();

            DownloadFailedArgs = new GameDownloadFailedEventArgs ();
            UpdateFailedArgs = new GameUpdateFailedEventArgs ();
            RepairFailedArgs = new GameRepairFailedEventArgs ();
            LaunchFailedArgs = new GameLaunchFailedEventArgs ();

            GameExitArgs = new GameExitEventArgs ();
        }
Esempio n. 2
0
		/// <summary>
		/// Passes the repair failed event to a generic handler
		/// </summary>
		/// <param name="sender">The sender.</param>
		/// <param name="e">Contains the type of failure that occured</param>
		private void OnGameRepairFailed(object sender, GameRepairFailedEventArgs e)
		{
			GameDownloadFailedEventArgs args = new GameDownloadFailedEventArgs ();
			args.Metadata = e.Metadata;
			args.Result = e.Result;
			args.ResultType = "Repair";

			OnGameDownloadFailed (sender, args);	
		}