コード例 #1
0
        private void CoverMediaService_ConvertMediaCompleted()
        {
            Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new ThreadStart(delegate
            {
                progressWindow.Status = "Converted all media";
                progressWindow.AddToOutput("Converted all media");

                try
                {
                    // close the progress window
                    progressWindow.Close();
                }
                catch (Exception) { }

                try
                {
                    // eject the disc
                    dvdTrayService.OpenDiscTray(ripDVDService.DriveLetter);
                }
                catch (Exception exp)
                {
                }
            }));
        }