예제 #1
0
        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");
            }
        }
예제 #2
0
 public PortBConfiguration(int frequency, MuteOptions mute,
                           ConfigMuteOptions configMute, int attenuation, int slope, InverseOptions inverse)
     : base(frequency, mute, configMute, attenuation, slope, inverse)
 {
 }
예제 #3
0
 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;
 }