BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
//To show the custom time this.clock1.ShowCustomTimeClock = true; // To hide Dates in Digital Clock this.clock1.DisplayDates = false; //To set the Custom time / Reset the clock this.clock1.CustomTime = new DateTime(); // To Freeze and Un Freeze the Clock this.clock1.StopTimer = true; |
void CountDownTimer_Tick(object sender, EventArgs e) { if ((this.clock1.CustomTime.Second - 1) > 0) { this.clock1.CustomTime = this.clock1.CustomTime.AddSeconds(-1); this.clock2.CustomTime = this.clock1.CustomTime.AddSeconds(-1); } else { this.clock1.CustomTime = new DateTime(); this.clock2.CustomTime = new DateTime(); this.CountDownTimer.Stop(); this.buttonAdv1.Text = "Reset the Clock"; } } |