Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            RawDevice rawDevice = obj as RawDevice;

            if (ReferenceEquals(rawDevice, null))
            {
                return(false);
            }
            return(hDevice == rawDevice.hDevice);
        }
Beispiel #2
0
		public DeviceStatus(RawDevice device)
		{
			this.device = device;

			debugCursor = new DebugCursor();
			debugCursor.Name = "DebugCursor";
			Win32.POINT position = Win32.GetCursorPosition();
			Location = new Point(position.x, position.y);

			Thread t = new Thread(ThreadWorker);
			t.Name = "Cursor for device: " + device.Handle;
			t.SetApartmentState(ApartmentState.STA);
			t.IsBackground = true;
			t.Start();
		}
Beispiel #3
0
		/// <summary>
		/// 
		/// </summary>
		/// <param name="left"></param>
		/// <param name="right"></param>
		/// <returns></returns>
		public static bool Equals(RawDevice left, RawDevice right) // CLS-compliant.
		{
			return left == right;
		}
Beispiel #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="left"></param>
 /// <param name="right"></param>
 /// <returns></returns>
 public static bool Equals(RawDevice left, RawDevice right)         // CLS-compliant.
 {
     return(left == right);
 }