public ProjectMainForm(string strFilename) { bool fNewDocument = true; InitializeComponent(); // If we were given a filename, than open the specified file. if (strFilename != "") { m_doc = new Document(this); if (m_doc.Open(strFilename)) { fNewDocument = false; SetTitleBar(m_doc.Name); } } // otherwise, create a brand new (empty) document. if (fNewDocument) { Handle_NewDocument(); } // Init the list of recent files. m_recent = new RecentFiles(this, menuFile_RecentFiles); }
public ProjectMainForm(string strFilename) { bool fNewDocument = true; InitializeComponent(); // If we were given a filename, than open the specified file. if (strFilename != "") { m_doc = new Document(this); if (m_doc.Open(strFilename)) { fNewDocument = false; SetTitleBar(m_doc.Name); } } // otherwise, create a brand new (empty) document. if (fNewDocument) Handle_NewDocument(); // Init the list of recent files. m_recent = new RecentFiles(this, menuFile_RecentFiles); }