Ejemplo n.º 1
0
 private void ctl_DoubleClick(object sender, EventArgs e)
 {
     this._CurrentSelectControl = (Control)sender;
     this._CurrentSelectControl = (Control)sender;
     if (!this.ExistControlInList(this._CurrentSelectControl))
     {
         if (this._listControlSelect.Count > 0)
         {
             foreach (Control current in this._listControlSelect)
             {
                 current.Cursor = this._oldCursor;
                 ((BHSeatControl)current).CursorSelectedIt = false;
             }
             this._listControlSelect.Clear();
             this._listControlSelect.Add(this._CurrentSelectControl);
         }
         else
         {
             this._listControlSelect.Add(this._CurrentSelectControl);
         }
     }
     if (this._DoubleClick != null)
     {
         SelectOneSeat_Events e2 = new SelectOneSeat_Events((BHSeatControl)sender);
         this._DoubleClick(this, e2);
     }
 }
Ejemplo n.º 2
0
 private void ctl_MouseEnter(object sender, EventArgs e)
 {
     this._CurrentSelectControl = (Control)sender;
     ((BHSeatControl)this._CurrentSelectControl).CursorSelectedIt = true;
     if (this._OnMouseEnter != null)
     {
         SelectOneSeat_Events e2 = new SelectOneSeat_Events((BHSeatControl)sender);
         this._OnMouseEnter(this, e2);
     }
 }
Ejemplo n.º 3
0
 private void ctl_MouseLeave(object sender, EventArgs e)
 {
     this._CurrentSelectControl = (Control)sender;
     if (!this.ExistControlInList(this._CurrentSelectControl))
     {
         ((BHSeatControl)this._CurrentSelectControl).CursorSelectedIt = false;
     }
     if (this._OnMouseLeave != null)
     {
         SelectOneSeat_Events e2 = new SelectOneSeat_Events((BHSeatControl)sender);
         this._OnMouseLeave(this, e2);
     }
 }
Ejemplo n.º 4
0
 private void ctl_MouseClick(object sender, MouseEventArgs e)
 {
     this._CurrentSelectControl = (Control)sender;
     if (Control.ModifierKeys == Keys.Shift || Control.ModifierKeys == Keys.Control)
     {
         if (e.Button == MouseButtons.Left)
         {
             if (!this.ExistControlInList(this._CurrentSelectControl))
             {
                 this._listControlSelect.Add(this._CurrentSelectControl);
             }
             SelectOneSeat_Events e2 = new SelectOneSeat_Events((BHSeatControl)sender);
             if (this._OnCtrlOrShiftMouseClick != null)
             {
                 this._OnCtrlOrShiftMouseClick(this, e2);
             }
         }
     }
     else
     {
         if (e.Button == MouseButtons.Left)
         {
             if (this._LeftOneClick != null)
             {
                 SelectOneSeat_Events e2 = new SelectOneSeat_Events((BHSeatControl)sender);
                 this._LeftOneClick(this, e2);
             }
         }
         else
         {
             if (e.Button == MouseButtons.Right)
             {
                 if (this._RightOneClick != null)
                 {
                     RMSelectOneSeat_Events e3 = new RMSelectOneSeat_Events((BHSeatControl)sender, e.X, e.Y);
                     this._RightOneClick(this, e3);
                 }
             }
         }
     }
 }