Exemplo n.º 1
0
        private void finishRace()
        {
            MessageBox.Show("Koniec wyścigu. Eksportowanie danych...");

            listen        = false;
            Input.Enabled = false;

            DataSet ds = mergeData();

            SaveFileDialog fileDialog = new SaveFileDialog();

            fileDialog.Filter       = "Plik Excela (*.xls) | *.xls;";
            fileDialog.DefaultExt   = "xls";
            fileDialog.AddExtension = true;

            if (fileDialog.ShowDialog() == DialogResult.OK)
            {
                ExcelLibrary.DataSetHelper.CreateWorkbook(fileDialog.FileName, ds);
                DataUploader.Upload(fileDialog.FileName);
            }
            else
            {
                MessageBox.Show("Wybierz poprawną ścieżkę...");
            }
        }
Exemplo n.º 2
0
        private void uploadingTimer_Tick(object sender, EventArgs e)
        {
            DataSet ds = mergeData();

            ExcelLibrary.DataSetHelper.CreateWorkbook(resultsPath, ds);
            DataUploader.Upload(resultsPath);
            if (File.Exists(resultsPath))
            {
                File.Delete(resultsPath);
            }
        }