示例#1
0
        void _drive_OnDoneBurn(ref NERO_BURN_ERROR StatusCode)
        {
            Cursor = Cursors.Default;
            Burn.Drive.OnDoneBurn -= new _INeroDriveEvents_OnDoneBurnEventHandler(_drive_OnDoneBurn);
            Burn.Drive.OnProgress -= new _INeroDriveEvents_OnProgressEventHandler(_drive_OnProgress);

            DisplayMessage(StatusCode);

            Burn.Drive.EjectCD();
            this.DialogResult = DialogResult.OK;
        }
示例#2
0
        private void DisplayMessage(NERO_BURN_ERROR StatusCode)
        {
            switch (StatusCode)
            {
                case NERO_BURN_ERROR.NERO_BURN_OK:
                    if (Thread.CurrentThread.CurrentUICulture.Name == "en")
                        MessageBox.Show("The writing process was successfully completed!",
                            "Done!",
                            MessageBoxButtons.OK,
                            MessageBoxIcon.Information);
                    else
                        MessageBox.Show("Der Brennvorgang wurde erfolgreich abgeschlossen!",
                            "Brennen erfolgreich!",
                            MessageBoxButtons.OK,
                            MessageBoxIcon.Information);

                    break;

                case NERO_BURN_ERROR.NERO_BURN_USER_ABORT:
                    if (Thread.CurrentThread.CurrentUICulture.Name == "en")
                        MessageBox.Show("The writing process was aborted.",
                            "Abortion!",
                            MessageBoxButtons.OK,
                            MessageBoxIcon.Information);
                    else
                        MessageBox.Show("Der Brennvorgang wurde abgebrochen",
                            "Brennen abgebrochen!",
                            MessageBoxButtons.OK,
                            MessageBoxIcon.Information);

                    break;

                case NERO_BURN_ERROR.NERO_BURN_FAILED:
                    if (Thread.CurrentThread.CurrentUICulture.Name == "en")
                        MessageBox.Show("An error occured while writing on the media!",
                            "A writing error occured!",
                            MessageBoxButtons.OK,
                            MessageBoxIcon.Error);
                    else
                        MessageBox.Show("Der Brennvorgang konnte leider nicht erfolgreich abgeschlossen werden!",
                            "Fehler beim Brennen!",
                            MessageBoxButtons.OK,
                            MessageBoxIcon.Error);

                    break;

                default:
                    if (Thread.CurrentThread.CurrentUICulture.Name == "en")
                        MessageBox.Show("An error occured while writing on the media!",
                            "A writing error occured!",
                            MessageBoxButtons.OK,
                            MessageBoxIcon.Error);
                    else
                        MessageBox.Show("Der Brennvorgang konnte leider nicht erfolgreich abgeschlossen werden!",
                            "Fehler beim Brennen!",
                            MessageBoxButtons.OK,
                            MessageBoxIcon.Error);

                    break;
            }

            if(StatusCode == NERO_BURN_ERROR.NERO_BURN_OK)
                NotifyImagesLog(1000, (int)StatusCode);
            else
                NotifyImagesLog(1001, (int)StatusCode);
        }
示例#3
0
        void _drive_OnDoneBurn(ref NERO_BURN_ERROR StatusCode)
        {
            Cursor = Cursors.Default;
            Burn.Drive.OnDoneBurn -= new _INeroDriveEvents_OnDoneBurnEventHandler(_drive_OnDoneBurn);
            Burn.Drive.OnProgress -= new _INeroDriveEvents_OnProgressEventHandler(_drive_OnProgress);

            DisplayMessage(StatusCode);

            Burn.Drive.EjectCD();
            this.DialogResult = DialogResult.OK;
        }
示例#4
0
        private void DisplayMessage(NERO_BURN_ERROR StatusCode)
        {
            switch (StatusCode)
            {
            case NERO_BURN_ERROR.NERO_BURN_OK:
                if (Thread.CurrentThread.CurrentUICulture.Name == "en")
                {
                    MessageBox.Show("The writing process was successfully completed!",
                                    "Done!",
                                    MessageBoxButtons.OK,
                                    MessageBoxIcon.Information);
                }
                else
                {
                    MessageBox.Show("Der Brennvorgang wurde erfolgreich abgeschlossen!",
                                    "Brennen erfolgreich!",
                                    MessageBoxButtons.OK,
                                    MessageBoxIcon.Information);
                }

                break;

            case NERO_BURN_ERROR.NERO_BURN_USER_ABORT:
                if (Thread.CurrentThread.CurrentUICulture.Name == "en")
                {
                    MessageBox.Show("The writing process was aborted.",
                                    "Abortion!",
                                    MessageBoxButtons.OK,
                                    MessageBoxIcon.Information);
                }
                else
                {
                    MessageBox.Show("Der Brennvorgang wurde abgebrochen",
                                    "Brennen abgebrochen!",
                                    MessageBoxButtons.OK,
                                    MessageBoxIcon.Information);
                }

                break;

            case NERO_BURN_ERROR.NERO_BURN_FAILED:
                if (Thread.CurrentThread.CurrentUICulture.Name == "en")
                {
                    MessageBox.Show("An error occured while writing on the media!",
                                    "A writing error occured!",
                                    MessageBoxButtons.OK,
                                    MessageBoxIcon.Error);
                }
                else
                {
                    MessageBox.Show("Der Brennvorgang konnte leider nicht erfolgreich abgeschlossen werden!",
                                    "Fehler beim Brennen!",
                                    MessageBoxButtons.OK,
                                    MessageBoxIcon.Error);
                }

                break;

            default:
                if (Thread.CurrentThread.CurrentUICulture.Name == "en")
                {
                    MessageBox.Show("An error occured while writing on the media!",
                                    "A writing error occured!",
                                    MessageBoxButtons.OK,
                                    MessageBoxIcon.Error);
                }
                else
                {
                    MessageBox.Show("Der Brennvorgang konnte leider nicht erfolgreich abgeschlossen werden!",
                                    "Fehler beim Brennen!",
                                    MessageBoxButtons.OK,
                                    MessageBoxIcon.Error);
                }

                break;
            }

            if (StatusCode == NERO_BURN_ERROR.NERO_BURN_OK)
            {
                NotifyImagesLog(1000, (int)StatusCode);
            }
            else
            {
                NotifyImagesLog(1001, (int)StatusCode);
            }
        }