using System;
using System.Collections.Generic;
using System.ComponentModel;
namespace SchoolSample.Common
{
public class ResultsArgs<T> : AsyncCompletedEventArgs
{
public ResultsArgs(IEnumerable<T> results, Exception error, bool cancelled, object userState)
: base(error, cancelled, userState)
{
Results = results;
}
public bool HasError
{
get { return Error != null; }
}
public IEnumerable<T> Results { get; private set; }
}
}