Exemple #1
0
        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();
        }
Exemple #2
0
        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;
        }
Exemple #3
0
        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();
            }
        }