Пример #1
0
 private void StateChangeGeneral(object This, State state, NamedProgressBar n)
 {
     if (state == State.Finish)
     {
         namedProgressBar1.Value = namedProgressBar1.Maximum;
     }
 }
Пример #2
0
        private void ProgressChangeGeneral(object Self, int Now, int Total, NamedProgressBar n)
        {
            if (!n.IsMaxSet)
            {
                n.Maximum = Total;
            }

            n.Value = Now + 1;
            n.Value = Now + 1;
        }