コード例 #1
0
ファイル: MainForm.cs プロジェクト: sdetoni/AutoType
        private void StartTimer_Tick(object sender, EventArgs e)
        {
            ProgTimer.Stop();
            StartTimer.Stop();

            this.Text = mTitle + ": Typing now...";

            // Load text into memory
            if (this.mIsClipboardAction)
            {
                mTextToSend = Clipboard.GetText(TextDataFormat.UnicodeText);
            }
            else
            {
                mTextToSend = TextBuffer.Text;
            }

            // remove unwanted chars and set start typing pos
            mTextToSend    = mTextToSend.Replace("\r", "");
            mTextToSendIdx = 0;

            // Set progress bar output
            ProgBar.Value   = 0;
            ProgBar.Minimum = 0;
            ProgBar.Maximum = mTextToSend.Length;

            // Start send of the text
            mStartTextSend    = true;
            TxtTimer.Interval = (int)DelayCharsSendNum.Value;
            TxtTimer.Start();
        }
コード例 #2
0
ファイル: GameForm.cs プロジェクト: MathiasBast/MemoryGame
 private void GameEnd()
 {
     StartTimer.Stop();
     NameBox.Show();
     AskName.Show();
     DisplayVictory.Show();
     SubmitButton.Show();
 }
コード例 #3
0
ファイル: IISFeaturesInstall.cs プロジェクト: iAJTin/iIIS
        private void StartTimer_Tick(object sender, EventArgs e)
        {
            FeaturesProgressBar.Value   = 0;
            FeaturesProgressBar.Maximum = Commands.Count;

            StartTimer.Stop();

            Task.Run(async() => await Commands.ProcessAsync());
        }
コード例 #4
0
        private void StartTimer_Tick(object sender, EventArgs e)
        {
            FeaturesProgressBar.Value   = 0;
            FeaturesProgressBar.Maximum = Commands.Count;

            StartTimer.Stop();

            Commands.Process();
        }
コード例 #5
0
ファイル: Form1.cs プロジェクト: cddchen/homework
        private void StartTimer_Tick(object sender, EventArgs e)
        {
            timer1.Enabled = true;
            timer1.Start();

            gif   = Properties.Resources.bck;
            fd    = new System.Drawing.Imaging.FrameDimension(gif.FrameDimensionsList[0]);
            count = gif.GetFrameCount(fd);
            System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();
            timer.Interval = 200;
            timer.Tick    += Timer_Tick;
            timer.Start();

            StartTimer.Stop();
            StartTimer.Enabled = false;
        }
コード例 #6
0
ファイル: ActivateFrm.cs プロジェクト: Hyedima/Abubakar
 private void StartTimer_Tick(object sender, EventArgs e)
 {
     StartTimer.Stop();
     StartStreamingAndDetecting();
 }