or


/// <summary> /// On click event /// </summary> /// <param name="e"></param> protected override void OnClick(EventArgs e) { if (this.multiClickAccepted) base.OnClick(e); else { //if the multiclick is disabled (as default) disable the button before raise any event this.temporaryEnabled = this.Enabled; base.Enabled = false; base.OnClick(e); base.Enabled = (bool)this.temporaryEnabled; this.temporaryEnabled = null; //after the reactivation look for any binding to restore the correct button state if (this.DataBindings != null) { foreach (System.Windows.Forms.Binding b in this.DataBindings) { if (b.PropertyName.Equals("Enabled")) b.ReadValue(); } } } }

summaryItem.Name = "TimeWorked"summaryItem.AggregateExpression = "SUM(MinutesWorked)"summaryItem.FormatString = "{0:hh}:{0:mm} = {0}"


