void ProjectDocument_Loading(Document sender) { ++mLoading; }
void ProjectDocument_Loaded(Document sender) { --mLoading; if (mLoading == 0) { ProjectDocumentItem item = RootItem.FindDocument(sender.FileName) as ProjectDocumentItem; OnProjectReloaded(item); } }
public ReadOnlyDocumentException(Document doc) : base("An attempt was made to modify a read-only document (" + doc.FileName + ")") { }