AHRSInterface.calcVar.displayLoggingPercent C# (CSharp) Method

displayLoggingPercent() private method

private displayLoggingPercent ( float percent_complete ) : void
percent_complete float
return void
        private void displayLoggingPercent(float percent_complete)
        {
            if (this.calcVarStatusText.InvokeRequired)
            {
                displayLoggingPercentCallback d = new displayLoggingPercentCallback(displayLoggingPercent);
                this.Invoke(d, new object[] { percent_complete });
            }
            else
            {
                if (percent_complete == 100)
                {
                    dataProgressBar.Value = (int)percent_complete;
                    calcVarStatusText.Text = "Done.";
                    computecalcVarButton.Enabled = true;
                    startDataCollectionButton.Enabled = false;
                    stopDataCollectionButton.Enabled = false;
                }
                else
                {
                    dataProgressBar.Value = (int)percent_complete;
                    calcVarStatusText.Text = "Collecting Data: " + percent_complete.ToString() + " %";
                }
            }
        }