AHRSInterface.calcVar.displayLoggingPercent C# (CSharp) 메소드

displayLoggingPercent() 개인적인 메소드

private displayLoggingPercent ( float percent_complete ) : void
percent_complete float
리턴 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() + " %";
                }
            }
        }