using System.ComponentModel;
namespace Chernobyl.ComponentModel
{
///
/// Extension and utility methods for
///
public static class AsyncCompletedEventArgsExtensions
{
///
/// Returns true if the was not
/// cancelled and does not have an error.
///
/// The instances to check for cancellation
/// and errors.
/// True if the was not
/// cancelled and did not result in an error.
public static bool IsGood(this AsyncCompletedEventArgs asyncCompleted)
{
return asyncCompleted.Cancelled == false && asyncCompleted.Error == null;
}
}
}