Beispiel #1
0
 private void btn_results_upload_Click(object sender, EventArgs e)
 {
     if (tb_result_save_path.Text == "")
     {
         MessageBox.Show("Please choose path with results and try again");
         return;
     }
     if (!Directory.Exists(tb_result_save_path.Text))
     {
         MessageBox.Show("Chosen directory does not exists");
         return;
     }
     exp = new ResultExport("l", "p", "s", tb_result_save_path.Text);
     exp.ExportFolder(tb_result_save_path.Text);
     MessageBox.Show("Successfull");
 }
Beispiel #2
0
 private void btn_results_save_Click(object sender, EventArgs e)
 {
     if (tb_result_save_path.Text == "")
     {
         MessageBox.Show("Path for save is empty");
         return;
     }
     if (!Directory.Exists(tb_result_save_path.Text))
     {
         MessageBox.Show("Directory does not exists");
         return;
     }
     Result[] arr = new Result[10];
     for (int i = 0; i < 10; i++)
     {
         Result r = new Result(i, 0, "123", "456", new DateTime(2019, 5, 27), 1, 100);
         arr[i] = r;
     }
     exp = new ResultExport("l", "p", "s", tb_result_save_path.Text);
     exp.ExportToFile(arr);
     MessageBox.Show("Done");
 }