public static string GetText(this InverseOptions op) { switch (op) { case InverseOptions.Inv: return("On"); case InverseOptions.Nrm: return("Off"); default: throw new Exception("Unsupported Operation"); } }
public PortBConfiguration(int frequency, MuteOptions mute, ConfigMuteOptions configMute, int attenuation, int slope, InverseOptions inverse) : base(frequency, mute, configMute, attenuation, slope, inverse) { }
public PortConfiguration(int frequency, MuteOptions mute, ConfigMuteOptions configMute, int attenuation, int slope, InverseOptions inverse) { Frequency = frequency; Mute = (int)mute; ConfigMute = (int)configMute; Attenuation = attenuation; Slope = slope; Inverse = (int)inverse; }