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(); }
private void GameEnd() { StartTimer.Stop(); NameBox.Show(); AskName.Show(); DisplayVictory.Show(); SubmitButton.Show(); }
private void StartTimer_Tick(object sender, EventArgs e) { FeaturesProgressBar.Value = 0; FeaturesProgressBar.Maximum = Commands.Count; StartTimer.Stop(); Task.Run(async() => await Commands.ProcessAsync()); }
private void StartTimer_Tick(object sender, EventArgs e) { FeaturesProgressBar.Value = 0; FeaturesProgressBar.Maximum = Commands.Count; StartTimer.Stop(); Commands.Process(); }
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; }
private void StartTimer_Tick(object sender, EventArgs e) { StartTimer.Stop(); StartStreamingAndDetecting(); }