using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
+using System.ComponentModel;\r
+using System.IO;\r
using System.Text;\r
+using System.Threading;\r
using System.Windows;\r
-using System.Windows.Controls;\r
-using System.Windows.Data;\r
-using System.Windows.Documents;\r
-using System.Windows.Input;\r
-using System.Windows.Media;\r
-using System.Windows.Media.Imaging;\r
-using System.Windows.Navigation;\r
-using System.Windows.Shapes;\r
-using Microsoft.Win32;\r
-using System.IO;\r
-using FolderBrowserDialog = System.Windows.Forms.FolderBrowserDialog;\r
-using System.Xml.Serialization;\r
using System.Xml;\r
+using System.Xml.Serialization;\r
using Ionic.Zip;\r
-using System.ComponentModel;\r
-using System.Threading;\r
+using FolderBrowserDialog = System.Windows.Forms.FolderBrowserDialog;\r
\r
namespace MLSFileTrimmer\r
{\r
openFolderDialog.RootFolder = Environment.SpecialFolder.MyDocuments;\r
if (openFolderDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)\r
{\r
- outputDirtextBox.Text = openFolderDialog.SelectedPath;\r
+ outputDirTextBox.Text = openFolderDialog.SelectedPath;\r
currentDirectory = openFolderDialog.SelectedPath;\r
}\r
}\r
private void parseButton_Click(object sender, RoutedEventArgs e)\r
{\r
// make sure the directory exists\r
- if (outputDirtextBox.Text.Equals(String.Empty))\r
+ if (outputDirTextBox.Text.Equals(String.Empty))\r
{\r
MessageBox.Show("Please select the correct output directory.");\r
return;\r
}\r
- else if (!Directory.Exists(outputDirtextBox.Text))\r
+ else if (!Directory.Exists(outputDirTextBox.Text))\r
{\r
- MessageBox.Show(outputDirtextBox.Text + " does not exist. Please select the correct output directory.");\r
+ MessageBox.Show(outputDirTextBox.Text + " does not exist. Please select the correct output directory.");\r
}\r
\r
// make sure the original files exist\r
this.trimmingLabel.Visibility = Visibility.Hidden;\r
this.finishedLabel.Visibility = Visibility.Visible;\r
}\r
+\r
+ private void exitButton_Click(object sender, RoutedEventArgs e)\r
+ {\r
+ this.Close();\r
+ }\r
}\r
}\r