Пример #1
0
        private void consoleWindowToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ConsoleWindow consoleWin = new ConsoleWindow();

            consoleWin.AddResults(resultsList);
            consoleWin.ShowDialog(this);
        }
Пример #2
0
        private void encodingBackgroundWorker2_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            int endProgress = encodeProgress.Maximum;

            if (encodeAborted)
            {
                endProgress = encodeProgress.Maximum - abortedQueueSize;
            }
            encodeProgress.Value = endProgress;

            // update the status text
            encodeStatus.Text = "" + encodeProgress.Value + " of " + encodeProgress.Maximum + " files completed";

            encodeButton.Text    = "Encode!";
            encodeButton.Enabled = true;
            encodeInProgress     = false;

            if (TaskbarManager.IsPlatformSupported)
            {
                TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.Normal);
                TaskbarManager.Instance.SetProgressValue(encodeProgress.Value, encodeProgress.Maximum);
            }

            if (consoleMessagesQueued)
            {
                ConsoleWindow consoleWin = new ConsoleWindow();
                consoleWin.AddResults(resultsList);
                consoleWin.ShowDialog(this);
            }
        }