private void exportImage_Click(object sender, RoutedEventArgs e) { var savingHandler = new SaveHandler("Png files (*.png)|*.png|All files (*.*)|*.*"); var path = savingHandler.GetPath(); ImageHandler.ExportToImage(canvas, path); }
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); }