/// <summary>
 /// Called when the export button is clicked
 /// </summary>
 /// <param name="sender">autogenerated</param>
 /// <param name="e">autogenerated</param>
 private void ExportButtonClick(object sender, RoutedEventArgs e)
 {
     if (filePathTextbox.Text.Length > 0)
     {
         _ui.ExportData(filePathTextbox.Text);
         Environment.Exit(0);
     }
     else
     {
         MessageBox.Show("Du har ikke valgt en fil sti", "Ingen fil sti", MessageBoxButton.OK);
     }
 }
Exemple #2
0
 /// <summary>
 /// Called when the export button is clicked
 /// </summary>
 /// <param name="sender">
 /// autogenerated
 /// </param>
 /// <param name="e">
 /// autogenerated
 /// </param>
 private void ExportButtonClick(object sender, RoutedEventArgs e)
 {
     if (filePathTextbox.Text.Length > 0)
     {
         _ui.ExportData(filePathTextbox.Text);
         Thread.Sleep(10000);
         Environment.Exit(0);
     }
     else
     {
         FlexibleMessageBox.Show(_ui._stationNativeWindow, "You have not selected an output file path.", "No File Path", MessageBoxButtons.OK);
     }
 }