protected override void OnMouseEnter(EventArgs e) { base.OnMouseEnter(e); if (lastState == ReminderMouseState.Default) { base.BackColor = ((Main)ParentForm).NoteLabelColor(Main.NoteLabelStatus.Hover); this.Cursor = Main.HandCursor; lastState = ReminderMouseState.Hover; } }
protected override void OnMouseLeave(EventArgs e) { base.OnMouseLeave(e); if (lastState == ReminderMouseState.Hover) { base.BackColor = ((Main)ParentForm).NoteLabelColor(0); this.Cursor = Cursors.Default; lastState = ReminderMouseState.Default; } }
protected override void OnClick(EventArgs e) { base.OnClick(e); if (lastReminderClick != this ) { if (lastReminderClick != null) lastReminderClick.LastState = ReminderMouseState.LostFocus; if (lastState != ReminderMouseState.Clicked) { base.BackColor = ((Main)ParentForm).NoteLabelColor(Main.NoteLabelStatus.Clicked); lastState = ReminderMouseState.Clicked; } lastReminderClick = this; } }