示例#1
0
 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;
     }
 }
示例#2
0
 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;
     }
 }
示例#3
0
        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;
            }
        }