Example #1
0
        public bool Equals(TPadLocation other)
        {
            if (Status != other.Status)
            return false;
              if (PageIndex != other.PageIndex)
            return false;
              if (Document != other.Document)
            return false;
              if (LocationCm != other.LocationCm)
            return false;
              if (RotationAngle != other.RotationAngle)
            return false;

              return true;
        }
Example #2
0
        public void OnRegistrationChanged(TPadLocation last, TPadLocation newL)
        {
            if (RegistrationChanged != null)
            RegistrationChanged(this, new RegistrationEventArgs() { LastLocation = last, NewLocation = newL });

              if (State != StackingState.StackedBelow)
            return;

              SendMessage(new StackingMessage()
              {
            MessageType = StackingMessageType.LocationUpdate,
            Location = newL,
            SourceDeviceID = ID,
            TargetDeviceID = DeviceOnTop
              });
        }