Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="e"></param>
 protected override void OnMouseDown(MouseEventArgs e)
 {
     base.OnMouseDown(e);
     if (base.Parent != null)
     {
         base.UpdateViewInfoState();
         if (e.Button == MouseButtons.Left)
         {
             EditHitInfo info1 = ViewInfo.CalcHitInfo(new Point(e.X, e.Y));
             if (((info1.HitTest == EditHitTest.Button) && AllowButtonPress) && ViewInfo.CanPress(info1))
             {
                 ViewInfo.PressedInfo = info1;
                 RefreshVisualLayout();
                 OnPressButton(info1.HitObject as EditorButtonObjectInfoArgs);
             }
         }
     }
 }