NiceHashMiner.Form_Loading.SetProgressValueAndMsg C# (CSharp) Method

SetProgressValueAndMsg() public method

public SetProgressValueAndMsg ( int value, string msg ) : void
value int
msg string
return void
        public void SetProgressValueAndMsg(int value, string msg)
        {
            if (value <= this.progressBar1.Maximum) {
                this.Invoke((MethodInvoker)delegate {
                    this.progressBar1.Value = value;
                    this.LoadText.Text = msg;
                    this.progressBar1.Invalidate();
                    this.LoadText.Invalidate();
                });
            }
        }