Exemplo n.º 1
0
 public void Progress(int progress)
 {
     if (progress > progressBar.Minimum && progress <= progressBar.Maximum)
     {
         progressBar.Value = progress;
         progressBar.Show();
     }
     else
     {
         progressBar.Hide();
     }
 }
        public void SetStatus(StatusBarMessageType type, string message, int progress)
        {
            if (progress <= 0)
            {
                progressBar.Hide();
            }
            else
            {
                progressBar.Show();
            }
            progressBar.Value = progress;
            Text       = "      " + message;
            icon.Image = imageList.Images[0];

            /*if (type == StatusBarMessageType.Info)
             *      icon.Image = imageList.Images[
             * else
             *      icon.Image = imageList.Images[0];*/
        }