public SwDmVirtualAssembly(ISwDmApplication dmApp, ISwDMDocument doc, SwDmDocument owner, bool isCreated, Action <ISwDmDocument> createHandler, Action <ISwDmDocument> closeHandler, bool?isReadOnly) : base(dmApp, doc, isCreated, createHandler, closeHandler, isReadOnly) { m_Owner = owner; m_Owner.Disposed += OnOwnerDisposed; }
private void OnOwnerDisposed(SwDmDocument owner) { this.Close(); }