public TranslationListener()
        {
            InitializeComponent();

            //Create new database access object
            access = new LocalizationDatabaseAccessor();

            //Create new XML Serialization object
            serializer = new XMLSerializer(access);

            // Create a new FileSystemWatcher and set its properties.
            watcher = new FileSystemWatcher();
            watcher.Path = Properties.Settings.Default.HandbackFolderPath;
            watcher.NotifyFilter = NotifyFilters.FileName | NotifyFilters.DirectoryName | NotifyFilters.CreationTime;
            watcher.Filter = "*.xml";

            // Add event handlers.
            watcher.Created += new FileSystemEventHandler(OnChanged);

            //watcher.Changed += new FileSystemEventHandler(OnChanged);
            //watcher.Deleted += new FileSystemEventHandler(OnChanged);
            //watcher.Renamed += new RenamedEventHandler(OnRenamed);
        }
        private string GetXMLOutputPath(LocalizationDatabaseAccessor.BatchInfo batch)
        {
            //"<TargetLangId>_<SourceLangID>_<BatchID>_<DateStamp>.xml"
            string filename = String.Format("{0}_{1}_{2}_{3:MM-dd-yyyy}", batch.OutputLCID, batch.InputLCID, batch.BatchID, DateTime.Now);

            string path = Path.ChangeExtension(Path.Combine(Properties.Settings.Default.HandoffFolderPath, filename), "xml");

            return path;
        }