Пример #1
0
 private void rightBox_Click(object sender, EventArgs e)
 {
     if (GestureUtils.IsInvolved(sender as Control))
     {
         GestureUtils.Reject(sender as Control);
         return;
     }
     if (!IsUp())
     {
         SlipUp();
         return;
     }
     if (!skipToolShown)
     {
         controller.Next();
         if ((DateTime.Now - lastRightBoxClicked).TotalMilliseconds <= 700)
         {
             countRightBoxClicked++;
         }
         if (countRightBoxClicked >= 3)
         {
             ShowSkipTool();
             countRightBoxClicked = 0;
         }
         lastRightBoxClicked = DateTime.Now;
         controller.Focus();
     }
     else
     {
         HideSkipTool();
         controller.Switch();
     }
 }
Пример #2
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     if (GestureUtils.IsInvolved(sender as Control))
     {
         GestureUtils.Reject(sender as Control);
         return;
     }
     if (!IsUp())
     {
         SlipUp();
         return;
     }
     controller.Exit();
 }
Пример #3
0
 private void leftBox_Click(object sender, EventArgs e)
 {
     if (GestureUtils.IsInvolved(sender as Control))
     {
         GestureUtils.Reject(sender as Control);
         return;
     }
     if (!IsUp())
     {
         SlipUp();
         return;
     }
     controller.Previous();
     controller.Focus();
 }