ApProg.UserInterface.Shell.MainWindow.ShowProgressBar C# (CSharp) Method

ShowProgressBar() public method

public ShowProgressBar ( bool show ) : void
show bool
return void
        public void ShowProgressBar(bool show)
        {
            if(myProgress != null)
                myProgress.Close();

            myProgress = new ProgressDialog();
            myProgress.Owner = this;
            if (show)
            {
                myProgress.Show();
                IsEnabled = false;
            }
            else
            {
                IsEnabled = true;
                myProgress.Close();
                myProgress = null;
            }
        }