static public ModelDocument CreateFromFile(string FileName) { ModelDocument _Model = new ModelDocument(FileName); _Model.LoadFromFile(FileName); return(_Model); }
public virtual void SetActiveModel(ModelDocument Model) { if (m_Model != null) { m_Model.EventUpdate -= new UpdateEventHandler(FireUpdateEvent); m_Model = null; } m_Model = Model; m_Model.EventUpdate += new UpdateEventHandler(FireUpdateEvent); }
public virtual void LoadFromFile(string FileName) { SetActiveModel(ModelDocument.CreateFromFile(FileName)); }