![]() ![]() If i run fast the program quit fast and run again fast few times i see that it was on 5:40 count back then its on 5:54 and then its on 4:30.įor some reason its jumping for 5:54 or so and then only its keep counting from 4:30. Now i run again its on 7:30 and keep counting back. I quit the program now again and will run again: It was on 9:40 keep counting back. Im doing continue: the timer is on 10:30 and keep count back. Then i quit my program when the timer is on 14 minutes and 40 seconds.Īnd the variable: diff.TotalMinutes is: 10.5 minutes. Now i click continue: i see the counter go back 14 minutes and 50 seconds. The variable: diff.TotalMinutes is: 6.9 minutes. But also in some cases not sure when it happen it show the variable diff contain minus.Īnd then the timer count forward instead backward.Īt this time i see a problem for example the time left is 15 minutes. Sometimes the result of the variable diff is minus. TimerCount.Text = string.Format("", hours, minutes, seconds) Display the current values of hours, minutes and seconds in Also, show the message, notifying that the time is over. If the time is over, clear all settings and fields. Private void timer3_Tick(object sender, EventArgs e) If for example the time that passed was 1 minutes then the timer should count 19 minutes back. If the time passed is 15 minutes so the timer should count backaward 5 minutes. If its beloew 20 minutes show the timer start the timer and show the time left from 20 to 0. If the time is 20 minutes or over 20 minutes do something. Then i calculate the time have been passed from this time untill the current DateTime.Now The idea is that im saving in some point in my program the current DateTime.Now to a settings text file. I'm doing dt - date sometimes the result is minus minutes like -15 for example and then the timer i have count forward instead backward. String time = Options_DB.Get_OperationLastTime() īeginOperationToolStripMenuItem.Enabled = true īeginOperationToolStripMenuItem.Enabled = false Private void beginOperstionChecker(DateTime dt) ![]()
0 Comments
Leave a Reply. |