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; }
public Device() { name = null; ip = null; mac = null; type = DeviceType.Unknown; receiveMode = DeviceReceiveMode.Deny; }
/// <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(); }