private void btnStartNewProj_Click(object sender, EventArgs e) { //unload splash screen this.Hide(); // load MDI form MDImain frmMDI = new MDImain(Project, Network, Links, FreewayFacilities, OrigDestPairs); frmMDI.Show(); }
public MDImain(XXE_DataStructures.ProjectData ProjImport, NetworkData networkImport, List <LinkData> linksImport, List <FreewayData> freewayFacilitiesImport, List <ODdata> odPairsImport) { InitializeComponent(); this.Text = "XXE (Mannering and Washburn)"; Project = ProjImport; Network = networkImport; Links = linksImport; FreewayFacilities = freewayFacilitiesImport; OrigDestPairs = odPairsImport; theMain = this; }
private void btnOpenExistProj_Click(object sender, EventArgs e) { string FileName = Main.GetFilename(FileListingTitle, RegistryDirectory, RegistryPathForStoredFilenames, Filter, InitialDirectory); if (FileName != "") { Project.FileName = FileName; XXE_Calculations.FileInputOutput.ReadXmlFile(FileName, Project, Network, Links, OrigDestPairs); //unload splash screen this.Hide(); // Load MDI form MDImain frmMDI = new MDImain(Project, Network, Links, FreewayFacilities, OrigDestPairs); frmMDI.Show(); MDImain.theMain.OpenAllDataForms(); } }