//-----------------------------------------------------------------------------
// OperationCompletedEventArgs.cs
//
// Microsoft XNA Community Game Platform
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
using System;
namespace NetRumble
{
///
/// Custom EventArgs class used by the NetworkBusyScreen.OperationCompleted event.
///
class OperationCompletedEventArgs : EventArgs
{
///
/// Gets or sets the result of the network operation that has just completed.
///
public object Result { get; set; }
///
/// Gets or sets the exception that caused the operation to fail, if any.
///
public Exception Exception { get; set; }
///
/// Constructs a new event arguments class.
///
public OperationCompletedEventArgs(object result)
{
this.Result = result;
}
///
/// Constructs a new event arguments class with an optional exception.
///
public OperationCompletedEventArgs(object result, Exception exception)
{
this.Result = result;
this.Exception = exception;
}
}
}