public ONTHelper(ONTType type, string ONTSerial) { Type = type; _ont = ONTFactory.GetONT(type); _ont.SerialNumber = ONTSerial; LoadONT(ONTSerial); }
public ONTHelper(ONTType type) { Type = type; _ont = ONTFactory.GetONT(type); }
public static ONT GetONT(ONTType type) { switch (type) { case ONTType.MDU: return new MDUONT(); case ONTType.SFU: return new SFUONT(); default: throw new ArgumentException("GONT137: This error should be impossible"); } }