00001 /* ---------------------------------------------------------------------------- 00002 * Microsoft Corporation 00003 * ---------------------------------------------------------------------------- 00004 * Microsoft Project Server mpFx (mpFx) 00005 * ---------------------------------------------------------------------------- 00006 * Author: Colby Africa 00007 * ---------------------------------------------------------------------------- 00008 * License: http://code.msdn.microsoft.com/mpFx/Project/License.aspx 00009 * ---------------------------------------------------------------------------- 00010 */ 00011 00012 using System; 00013 using Mcs.Epm.MicrosoftProject.mpFx.ProjectsWebService; 00014 00015 /// <summary> 00016 /// Event arguments for all asynchronous reads of ProjectDataSet reads 00017 /// </summary> 00018 public class ProjectReadCompleteArgs : EventArgs 00019 { 00020 #region Constructor 00021 00022 /// <summary> 00023 /// Constructor 00024 /// </summary> 00025 /// <param name="cancelled">True if the operation was cancelled, false if not</param> 00026 /// <param name="error">The underlying exception if an error occurred</param> 00027 /// <param name="projectDataSet">If not an error or cancelled, the resultant ProjectDataSet</param> 00028 public ProjectReadCompleteArgs(bool cancelled, 00029 Exception error, 00030 ProjectDataSet projectDataSet) 00031 { 00032 Cancelled = cancelled; 00033 Exception = error; 00034 ProjectDataSet = projectDataSet; 00035 } 00036 00037 #endregion 00038 00039 #region Public Properties 00040 00041 /// <summary> 00042 /// Retrieve and privately set the ProjectDataSet 00043 /// </summary> 00044 public ProjectDataSet ProjectDataSet { get; private set; } 00045 00046 /// <summary> 00047 /// Retrieve and privately set the cancelled flag 00048 /// </summary> 00049 public bool Cancelled { get; private set; } 00050 00051 /// <summary> 00052 /// Retrieve and set the underlying exception 00053 /// </summary> 00054 public Exception Exception { get; private set; } 00055 00056 #endregion 00057 } 00058 00059 /* ------------------------------------------------------------------------------------------------------- 00060 * Change Log 00061 * ------------------------------------------------------------------------------------------------------- 00062 * 2008-06-09: Colby Africa - Added header and footer 00063 * 2008-06-09: Colby Africa - Regionized members 00064 */
1.5.8