示例#1
0
        private void ProgTimer_Tick(object sender, EventArgs e)
        {
            int v = ProgBar.Value - 1;

            if (v < 0)
            {
                v = 0;
            }
            ProgBar.Value = v;
            ProgBar.Refresh();
        }
示例#2
0
 private void startAutoTypeAction(Boolean isClipboardAction)
 {
     this.mIsClipboardAction = isClipboardAction;
     this.Text           = mTitle + ": Delaying " + ((int)DelayStartSecsNum.Value).ToString() + " seconds before typing..";
     mStartTextSend      = false;
     StartTimer.Interval = ((int)DelayStartSecsNum.Value * 1000);
     ProgBar.Maximum     = StartTimer.Interval / ProgTimer.Interval;
     ProgBar.Minimum     = 0;
     ProgBar.Value       = ProgBar.Maximum;
     ProgBar.Refresh();
     StartTimer.Start();
     ProgTimer.Start();
 }