protected override void OnInitialized() { _countdownTimer = new CountdownTimer(Timeout); _countdownTimer.OnTick += CalculateProgress; _countdownTimer.OnElapsed += () => { Close(); }; _countdownTimer.Start(); }
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(); }