private void exportTxt_Click(object sender, RoutedEventArgs e) { var savingHandler = new SaveHandler("Text files (*.txt)|*.txt|All files (*.*)|*.*"); var path = savingHandler.GetPath(); TextHandler.ExportToTextFile(builder.Array, xDimension, yDimension, path); }
private void exportButton_Click(object sender, RoutedEventArgs e) { var savingHandler = new SavingHandler("Text files (*.txt)|*.txt|All files (*.*)|*.*"); var path = savingHandler.GetPath(); if (path == null || path == "") { return; } TextHandler.ExportToTextFile(processor.Array, xDimension, yDimension, path); }