WinLib.Forms.LoadingForm.UpdateProgress C# (CSharp) Method

UpdateProgress() public method

public UpdateProgress ( int percent ) : void
percent int
return void
        public void UpdateProgress(int percent)
        {
            if (percent < 0)
                Invoke(new Action(() => {
                    progressBar1.Style = ProgressBarStyle.Marquee;
                    progressBar1.Value = 33;
                }));
            else
                Invoke(new Action(() => {
                    progressBar1.Style = ProgressBarStyle.Continuous;
                    progressBar1.Value = percent; }));
        }