예제 #1
0
파일: ATEMAux.cs 프로젝트: imorrish/atemlib
        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));
                    }
        }
예제 #2
0
파일: ATEMAux.cs 프로젝트: imorrish/atemlib
        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);
                 }
        }