Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int M(int a)
- {
- int result;
- this.timer = new System.Windows.Forms.Timer();
- timer.Interval = 100;
- timer.Tick += new EventHandler(timer_Tick);
- timer.Enabled = true;
- /* выполнить это, когда таймер остановится */
- /* result = ...
- */
- return result;
- }
- void timer_Tick(object sender, EventArgs e)
- {
- this.timerTicks += 100;
- if (this.timerTicks >= this.timelimit) {
- this.timer.Stop();
- //...
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment