コード例 #1
0
    public override String ToString()
    {
        var sb = new StringBuilder();

        sb.Append(Index1.ToString());
        sb.Append("-");
        sb.Append(Index2.ToString());

        return(sb.ToString());
    }
コード例 #2
0
 /// <summary>
 /// Execute Numeric Switch with Essentials Magic Routing
 /// </summary>
 /// <param name="inputSelector">Numeric Input Selector</param>
 /// <param name="outputSelector">Numeric Output Selector</param>
 /// <param name="signalType">Signal Type to Route</param>
 public void ExecuteNumericSwitch(ushort inputSelector, ushort outputSelector, eRoutingSignalType signalType)
 {
     if (signalType != eRoutingSignalType.Audio)
     {
         return;
     }
     if (Destination != 0)
     {
         return;
     }
     if (Type == "router")
     {
         SendFullCommand("set", "input", Convert.ToString(inputSelector), 1);
         SendFullCommand("get", "input", Index1.ToString(CultureInfo.InvariantCulture), 1);
     }
     else
     {
         SendFullCommand("set", "sourceSelection", Convert.ToString(inputSelector), 1);
     }
 }