/// <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 finished event to a generic handler.
		/// </summary>
		/// <param name="sender">The sender.</param>
		/// <param name="e">Contains the result of the download.</param>
		protected void OnGameUpdateFinished(object sender, GameUpdateFinishedEventArgs e)
		{
			GameDownloadFinishedEventArgs args = new GameDownloadFinishedEventArgs ();
			args.Metadata = e.Metadata;
			args.Result = e.Result;
			args.ResultType = e.ResultType;

			OnGameDownloadFinished (sender, args);
		}