private static void ListAux(IList<string> args) { if (args.Count < 1) { ATEMAux.Help(); throw new SwitcherLibException("Invalid arguments"); } Switcher switcher = new Switcher(args[0]); Log.Debug(String.Format("Switcher: {0}", switcher.GetProductName())); IList<SwitcherAuxPort> inputs = switcher.GetAuxInputs(); foreach (SwitcherAuxPort input in inputs) { Console.Out.WriteLine(); Console.Out.WriteLine(String.Format(" Name: {0}", input.Name)); Console.Out.WriteLine(String.Format(" ID: {0}", input.ID.ToString())); Console.Out.WriteLine(String.Format(" Label: {0}", input.Label)); Console.Out.WriteLine(String.Format(" Source: {0}", input.Source)); } }
private static void SetAux(ATEMAux.Format format, IList<string> args, int aux, int source) { Switcher switcher = new Switcher(args[0]); Log.Debug(String.Format("Switcher: {0}", switcher.GetProductName())); if (aux < 1 ) { IList<SwitcherAuxPort> inputs = switcher.GetAuxInputs(); foreach (SwitcherAuxPort input in inputs) { Console.Out.WriteLine(); Console.Out.WriteLine(String.Format(" Name: {0}", input.Name)); Console.Out.WriteLine(String.Format(" ID: {0}", input.ID.ToString())); Console.Out.WriteLine(String.Format(" Label: {0}", input.Label)); Console.Out.WriteLine(String.Format(" Source: {0}", input.Source)); } } else { switcher.SetAuxInput((long)aux, (long)source); } }