示例#1
0
 /// <summary>
 /// Calls the error reporter.
 /// </summary>
 /// <param name="ex">The ex.</param>
 private void CallErrorReporter(Exception ex)
 {
     try
     {
         Errorform errorForm = new Errorform(ex);
         errorForm.ShowDialog();
     }
     catch (Exception exex)
     {
         MessageBox.Show("Error while loading the error reporter!\nSorry for this error!\nIt will be nice if you could report this at the homepage!\nhttp://aodl.sourceforge.net",
                         "Error loading error reporter", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
示例#2
0
        /// <summary>
        /// Controler_s the on C exception.
        /// </summary>
        /// <param name="ex">The ex.</param>
        private void Controler_OnCException(Exception ex)
        {
            this.timer1.Stop();
            this.progressBar1.Value		= 0;
            this.ToogleButtons(true);

            Errorform errorForm			= new Errorform(ex);
            errorForm.ShowDialog();
        }
示例#3
0
        /// <summary>
        /// Start the batch conversation. For each conversation
        /// there will be a new thread started.
        /// </summary>
        /// <param name="sourcefiles">The sourcefiles.</param>
        /// <param name="targetfiles">The targetfiles.</param>
        private void batchCtl_OnStartBatch(ArrayList sourcefiles, ArrayList targetfiles)
        {
            try
            {
                this.listView1.Items.Clear();
                this.ckbxOverwrite.Checked		= true;
                this.ckbxConvertOpen.Checked	= false;

                if(sourcefiles.Count > 0 && targetfiles.Count > 0)
                {
                    this.tbxFile.Text			= sourcefiles[0].ToString();
                    this.tbxTargetFilename.Text	= targetfiles[0].ToString();
                    targetfiles.RemoveAt(0);
                    sourcefiles.RemoveAt(0);
                    this._sourceFiles			= sourcefiles;
                    this._targetFiles			= targetfiles;
                    this.btnConvertOnly_Click(null, null);
                }
            }
            catch(Exception ex)
            {
                Errorform errForm			= new Errorform(ex);
                errForm.ShowDialog();
            }
        }
示例#4
0
 /// <summary>
 /// Performs the batch.
 /// </summary>
 private void PerformBatch()
 {
     try
     {
         if(!this._isSinglemode)
             if(this._sourceFiles != null && this._targetFiles != null)
                 if(this._sourceFiles.Count != 0 && this._targetFiles.Count != 0)
                 {
                         this.tbxFile.Text			= this._sourceFiles[0].ToString();
                         this.tbxTargetFilename.Text	= this._targetFiles[0].ToString();
                         this._sourceFiles.RemoveAt(0);
                         this._targetFiles.RemoveAt(0);
                         //Wait for clean up resources
                         System.Threading.Thread.Sleep(750);
                         this.btnConvertOnly_Click(null, null);
                 }
     }
     catch(Exception ex)
     {
         Errorform errForm			= new Errorform(ex);
         errForm.ShowDialog();
     }
 }
示例#5
0
 /// <summary>
 /// Calls the error reporter.
 /// </summary>
 /// <param name="ex">The ex.</param>
 private void CallErrorReporter(Exception ex)
 {
     try
     {
         Errorform errorForm			= new Errorform(ex);
         errorForm.ShowDialog();
     }
     catch(Exception exex)
     {
         MessageBox.Show("Error while loading the error reporter!\nSorry for this error!\nIt will be nice if you could report this at the homepage!\nhttp://aodl.sourceforge.net",
             "Error loading error reporter", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }