Ejemplo n.º 1
0
        private void btnViewOutput_Click(object sender, EventArgs e)
        {
            SaveFileDialog saveFileDialog = new SaveFileDialog();

            saveFileDialog.InitialDirectory = System.Windows.Forms.Application.StartupPath;

            saveFileDialog.Filter = "Results Files (*.csv)|*.csv|All Files (*.*)|*.*";

            if (saveFileDialog.ShowDialog(this) == DialogResult.OK)
            {
                FileIO_Output.WriteOutputs(saveFileDialog.FileName, timeStampRecords);
            }
        }
Ejemplo n.º 2
0
        private void btnReadWIMfiles_Click(object sender, EventArgs e)
        {
            //this.TruckDataFolderBrowser.RootFolder = Environment.SpecialFolder.MyComputer;
            //TruckDataFolderBrowser.ShowDialog();
            //SourceDir = TruckDataFolderBrowser.SelectedPath;

            this.TruckDataOpenFile.InitialDirectory = @"D:\";
            TruckDataOpenFile.ShowDialog();
            SourceDir = TruckDataOpenFile.FileName;

            lblDataFolder.Text = SourceDir;
            FileIO_Output.ReadTruckParkingDataFile(SourceDir);
        }