SetProgressState() public method

/// Displays or updates a progress bar hosted in a taskbar button of the given WPF window /// to show the specific percentage completed of the full operation. /// Sets the type and state of the progress indicator displayed on a taskbar button of the main application window.
public SetProgressState ( TaskbarProgressBarState state ) : void
state TaskbarProgressBarState Progress state of the progress button
return void
Example #1
0
        void BtnZipUp_Click(object sender, EventArgs e)
        {
            Taskbar.SetProgressState(TaskbarProgressBarState.Normal);
            if (MahEncType != EncryptionAlgorithm.None)
            {
                GetEncryptionCodeForm R = new GetEncryptionCodeForm("iTunes album zips");
                R.ShowDialog();
                Password = R.Password;
            }

            Taskbar.SetProgressValue(0, 1);
            bgw.DoWork += delegate(object sender2, DoWorkEventArgs e2) {
                try
                {
                    this.KickoffZipup(outputDirTextBox.Text);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.ToString());
                }
            };
            bgw.RunWorkerAsync();
        }
Example #2
0
 public void SetProgressState(TaskbarProgressBarState state, Window window)
 {
     _manager.SetProgressState(state, window);
 }