private void timer_pc2_Tick(object sender, EventArgs e) {//to get the amount in every 3 minutes count_pc2 += 1; if (count_pc2 == 1800) { amount_pc2 += 1; lblamount_pc2.Text = "P" + " " + (amount_pc2.ToString()) + ".00"; count_pc2 = 1640; } //count time diffA[2] = DateTime.Now - startTime[2]; diffB[2] = new TimeSpan(diffA[2].Hours, diffA[2].Minutes, diffA[2].Seconds); this.lbltime_pc2.Text = (diffB[2].ToString()); if (this.lbltime_pc2.Text == diff[2].ToString()) { this.timer_pc2.Enabled = false; endTime[2] = DateTime.Now.AddMinutes(0); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)