/// <summary> /// Loads a <see cref="DocListGetter"/> unit of objects. /// </summary> protected void DataPortal_Fetch() { LoadProperty(DocListProperty, DocList.GetDocList()); LoadProperty(DocClassNVLProperty, DocClassNVL.GetDocClassNVL()); LoadProperty(DocTypeNVLProperty, DocTypeNVL.GetDocTypeNVL()); LoadProperty(DocStatusNVLProperty, DocStatusNVL.GetDocStatusNVL()); LoadProperty(UserNVLProperty, UserNVL.GetUserNVL()); }
/// <summary> /// Loads a <see cref="DocListGetter"/> unit of objects, based on given criteria. /// </summary> /// <param name="docListFilteredCriteria">The fetch criteria.</param> protected void DataPortal_Fetch(DocListFilteredCriteria docListFilteredCriteria) { LoadProperty(DocListProperty, DocList.GetDocList(docListFilteredCriteria)); LoadProperty(DocClassNVLProperty, DocClassNVL.GetDocClassNVL()); LoadProperty(DocTypeNVLProperty, DocTypeNVL.GetDocTypeNVL()); LoadProperty(DocStatusNVLProperty, DocStatusNVL.GetDocStatusNVL()); LoadProperty(UserNVLProperty, UserNVL.GetUserNVL()); }
/// <summary> /// Registers a DocList instance to handle Saved events. /// to update the list of <see cref="DocInfo"/> objects. /// </summary> /// <param name="obj">The DocList instance.</param> public static void Register(DocList obj) { var mustRegister = _references == null; if (mustRegister) { _references = new List <WeakReference>(); } if (DocList.SingleInstanceSavedHandler) { _references.Clear(); } if (!Found(obj)) { _references.Add(new WeakReference(obj)); } if (mustRegister) { Doc.DocSaved += DocSavedHandler; } }