Document OpenFinish(Document doc) { // This doc is being opened doc.IncrementOpenCount(); // Doc is not modified doc.SetModified(false); // Make it active SetActiveDocument(doc); // Create a frame window of the desired type. It might already know what // view type to create, but parameterize it just in case if (m_typeFrame != null) { Object[] aobjT = { DocManager.GetFrameParent(), doc, m_typeView }; System.Activator.CreateInstance(m_typeFrame, aobjT); } // The doc is ready to go doc.InitDone(); return(doc); }
Document OpenFinish(Document doc) { // This doc is being opened doc.IncrementOpenCount(); // Doc is not modified doc.SetModified(false); // Make it active SetActiveDocument(doc); // Create a frame window of the desired type. It might already know what // view type to create, but parameterize it just in case if (m_typeFrame != null) { Object[] aobjT = { DocManager.GetFrameParent(), doc, m_typeView }; System.Activator.CreateInstance(m_typeFrame, aobjT); } // The doc is ready to go doc.InitDone(); return doc; }