Наследование: System.Windows.Forms.MouseEventArgs
Пример #1
0
 private void _tgMsgs_BeforeMouseDown(object sender, BeforeMouseDownEventArgs e)
 {
     if (CheckMark(e.X, e.Y))
     {
         e.Cancel = true;
     }
 }
Пример #2
0
		/// <summary>
		/// Вызывается перед обработкой сообщения нажатия мыши и позволяет
		/// отменить его.
		/// </summary>
		protected virtual bool OnBeforeMouseDownEvent(
			MouseButtons button, int clicks, int x, int y)
		{
			if (BeforeMouseDown != null)
			{
				var e = new BeforeMouseDownEventArgs(
					false, button, clicks, x, y, 0);

				BeforeMouseDown(this, e);

				return e.Cancel;
			}

			return false;
		}
Пример #3
0
        /// <summary>
        /// Вызывается перед обработкой сообщения нажатия мыши и позволяет
        /// отменить его.
        /// </summary>
        protected virtual bool OnBeforeMouseDownEvent(
            MouseButtons button, int clicks, int x, int y)
        {
            if (BeforeMouseDown != null)
            {
                var e = new BeforeMouseDownEventArgs(
                    false, button, clicks, x, y, 0);

                BeforeMouseDown(this, e);

                return(e.Cancel);
            }

            return(false);
        }
Пример #4
0
		private void _tgMsgs_BeforeMouseDown(object sender, BeforeMouseDownEventArgs e)
		{
			if (CheckMark(e.X, e.Y))
				e.Cancel = true;
		}