Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 private void GameEnd()
 {
     StartTimer.Stop();
     NameBox.Show();
     AskName.Show();
     DisplayVictory.Show();
     SubmitButton.Show();
 }
Exemplo n.º 3
0
        private void StartTimer_Tick(object sender, EventArgs e)
        {
            FeaturesProgressBar.Value   = 0;
            FeaturesProgressBar.Maximum = Commands.Count;

            StartTimer.Stop();

            Task.Run(async() => await Commands.ProcessAsync());
        }
Exemplo n.º 4
0
        private void StartTimer_Tick(object sender, EventArgs e)
        {
            FeaturesProgressBar.Value   = 0;
            FeaturesProgressBar.Maximum = Commands.Count;

            StartTimer.Stop();

            Commands.Process();
        }
Exemplo n.º 5
0
        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;
        }
Exemplo n.º 6
0
 private void StartTimer_Tick(object sender, EventArgs e)
 {
     StartTimer.Stop();
     StartStreamingAndDetecting();
 }