Example #1
0
 public Device(string name, IPAddress ipAddress, PhysicalAddressSerializable macAddress, DeviceType type)
 {
     this.name        = name;
     this.ip          = ipAddress;
     this.mac         = macAddress;
     this.type        = type;
     this.receiveMode = DeviceReceiveMode.Deny;
 }
Example #2
0
 public Device()
 {
     name        = null;
     ip          = null;
     mac         = null;
     type        = DeviceType.Unknown;
     receiveMode = DeviceReceiveMode.Deny;
 }
Example #3
0
        /// <summary>
        /// Changed receive mode to next option
        /// </summary>
        public void CycleReceiveMode()
        {
            int newRMindex = (int)receiveMode + 1;

            if (newRMindex > 2)
            {
                newRMindex = 0;
            }
            receiveMode = (DeviceReceiveMode)newRMindex;

            NotifyPropertyChanged();
        }