static void Main(string[] args)
        {
            string curDir = Directory.GetCurrentDirectory();
            string destDir = Path.Combine(curDir, "Dest");

            Converter conv = new Converter();
            conv.SourceDir = curDir;
            conv.DestDir = destDir;
            conv.Convert();
        }
Пример #2
0
 private void OnProcessImages(object obj)
 {
     try
     {
         Converter converter = new Converter();
         converter.Options = this.CurrentOptions;
         converter.SourceDir = this.SourceDir;
         converter.DestDir = this.DestDir;
         converter.Convert();
         System.Windows.MessageBox.Show("Conversion Complete!", "Finished");
         Process.Start(this.DestDir);
     }
     catch (ArgumentException aex)
     {
         System.Windows.MessageBox.Show(string.Format("Missing Information: {0}", aex.Message), "Error");
     }
     catch(Exception ex)
     {
         System.Windows.MessageBox.Show(string.Format("Unknown Error: {0}", ex.Message), "Error");
     }
 }