예제 #1
0
 protected override void OnInitialized()
 {
     _countdownTimer            = new CountdownTimer(Timeout);
     _countdownTimer.OnTick    += CalculateProgress;
     _countdownTimer.OnElapsed += () => { Close(); };
     _countdownTimer.Start();
 }
예제 #2
0
        protected override void OnInitialized()
        {
            OpenTimer = new System.Timers.Timer(1)
            {
                AutoReset = false
            };
            OpenTimer.Elapsed += HandleOpenTimerElapsed;
            OpenTimer.Start();

            _countdownTimer            = new CountdownTimer(Timeout);
            _countdownTimer.OnTick    += CalculateProgress;
            _countdownTimer.OnElapsed += () => { Close(); };
            _countdownTimer.Start();
        }