public FormLoadingProgress(LengthyOperation operaton, object objArgument) { InitializeComponent(); this.BackColor = MainForm.ColorBackground; ////////////////////////////////////////////////////////////////////////// _operation = operaton; _objArgument = objArgument; }
public FormGenericProgress(string strOperation, LengthyOperation operaton, object objArgument, bool bDeterminated) { InitializeComponent(); this.BackColor = MainForm.ColorBackground; ////////////////////////////////////////////////////////////////////////// this.Text = strOperation; _operation = operaton; _objArgument = objArgument; progress.Style = bDeterminated ? ProgressBarStyle.Blocks : ProgressBarStyle.Marquee; this.CancellationEnabled = true; }