X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=mls%2FwindowsGUI%2FMLSFileTrimmer%2FWindow1.xaml.cs;h=9ababe2165d57d745186243a9938c8a3e7211ecb;hb=e0b83b187067cb6b9b7ecfbdd65387c3fed0c237;hp=098aa47ccffcab94bc4bb75f41cb6cade824348f;hpb=fd3afb11f083a1d2610997ee85c550ff67586314;p=eq%2F.git diff --git a/mls/windowsGUI/MLSFileTrimmer/Window1.xaml.cs b/mls/windowsGUI/MLSFileTrimmer/Window1.xaml.cs index 098aa47..9ababe2 100644 --- a/mls/windowsGUI/MLSFileTrimmer/Window1.xaml.cs +++ b/mls/windowsGUI/MLSFileTrimmer/Window1.xaml.cs @@ -1,24 +1,13 @@ using System; -using System.Collections.Generic; -using System.Linq; +using System.ComponentModel; +using System.IO; using System.Text; +using System.Threading; using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; -using Microsoft.Win32; -using System.IO; -using FolderBrowserDialog = System.Windows.Forms.FolderBrowserDialog; -using System.Xml.Serialization; using System.Xml; +using System.Xml.Serialization; using Ionic.Zip; -using System.ComponentModel; -using System.Threading; +using FolderBrowserDialog = System.Windows.Forms.FolderBrowserDialog; namespace MLSFileTrimmer { @@ -62,7 +51,7 @@ namespace MLSFileTrimmer openFolderDialog.RootFolder = Environment.SpecialFolder.MyDocuments; if (openFolderDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { - outputDirtextBox.Text = openFolderDialog.SelectedPath; + outputDirTextBox.Text = openFolderDialog.SelectedPath; currentDirectory = openFolderDialog.SelectedPath; } } @@ -70,14 +59,14 @@ namespace MLSFileTrimmer private void parseButton_Click(object sender, RoutedEventArgs e) { // make sure the directory exists - if (outputDirtextBox.Text.Equals(String.Empty)) + if (outputDirTextBox.Text.Equals(String.Empty)) { MessageBox.Show("Please select the correct output directory."); return; } - else if (!Directory.Exists(outputDirtextBox.Text)) + else if (!Directory.Exists(outputDirTextBox.Text)) { - MessageBox.Show(outputDirtextBox.Text + " does not exist. Please select the correct output directory."); + MessageBox.Show(outputDirTextBox.Text + " does not exist. Please select the correct output directory."); } // make sure the original files exist @@ -147,5 +136,10 @@ namespace MLSFileTrimmer this.trimmingLabel.Visibility = Visibility.Hidden; this.finishedLabel.Visibility = Visibility.Visible; } + + private void exitButton_Click(object sender, RoutedEventArgs e) + { + this.Close(); + } } }