Beispiel #1
0
 private void ConvertAVI()
 {
     try
     {
         PreProcessFiles();
         if (string.IsNullOrEmpty(mCDGFileName) | string.IsNullOrEmpty(mMP3FileName))
         {
             MessageBox.Show("Cannot find a CDG and MP3 file to convert together.");
             return;
         }
     }
     catch (Exception ex)
     {
         Console.Write(ex.Message);
     }
     mExportAVI = new ExportAVI();
     pbAVI.Value = 0;
     string backGroundFilename = "";
     if (chkBackGraph.Checked)
         backGroundFilename = tbBackGroundImg.Text;
     if (chkBackGround.Checked)
         backGroundFilename = tbBackGroundAVI.Text;
     mExportAVI.CDGtoAVI(tbAVIFile.Text, mCDGFileName, mMP3FileName, Convert.ToDouble(tbFPS.Text), backGroundFilename);
     pbAVI.Value = 0;
     try
     {
         CleanUp();
     }
     catch (Exception ex)
     {
         Console.Write(ex.Message);
     }
 }
Beispiel #2
0
        public frmExportCDG2AVI()
        {
            InitializeComponent();

            mExportAVI = new ExportAVI();
            //mExportAVI.Status += new ExportAVI.StatusChangedEventHandler(mExportAVI_Status);
            mExportAVI.Status += new StatusChangedEventHandler(mExportAVI_Status);

        }