示例#1
0
        private void bgwLogFiles_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            string logs = string.Empty;

            gbScreen.SetEnabled(true);
            X264LogParserService parserService = e.Result as X264LogParserService;

            if (parserService.Errors.Count() == 0)
            {
                logs = parserService.Logs;
                X264LogFileDisplayForm form = new X264LogFileDisplayForm();
                form.SetLogs(logs);
                form.ShowDialog();
            }
            else
            {
                MessageBox.Show(parserService.Errors[0].Description, "Errors occurred", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
示例#2
0
        private void bgwLogFiles_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            string logs = string.Empty;

            gbScreen.SetEnabled(true);
            X264LogParserService parserService = e.Result as X264LogParserService;

            if (parserService.Errors.Count() == 0)
            {
                logs = parserService.Logs;
                X264LogFileDisplayForm form = new X264LogFileDisplayForm();
                form.SetLogs(logs);
                form.ShowDialog();
            }
            else
            {
                MessageBox.Show(parserService.Errors[0].Description, "Errors occurred", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }