/// <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 ();
        }
Exemple #2
0
		/// <summary>
		/// Passes the update failed event to a generic handler.
		/// </summary>
		/// <param name="sender">The sender.</param>
		/// <param name="e">Contains the type of failure that occurred.</param>
		protected void OnGameUpdateFailed(object sender, GameUpdateFailedEventArgs e)
		{
			GameDownloadFailedEventArgs args = new GameDownloadFailedEventArgs ();
			args.Metadata = e.Metadata;
			args.Result = e.Result;
			args.ResultType = "Update";

			OnGameDownloadFailed (sender, args);
		}