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;
 }
Beispiel #2
0
        public static string GetText(this ConfigMuteOptions op)
        {
            switch (op)
            {
            case ConfigMuteOptions.On:
                return("On");

            case ConfigMuteOptions.Off:
                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)
 {
 }