예제 #1
0
파일: Program.cs 프로젝트: sschocke/netNUT
        private static void ListCommands(UPS target, UPSDClient client)
        {
            Dictionary <string, string> commands = client.ListUPSCommands(target.Name);

            Console.WriteLine("Instant commands supported on UPS [{0}]:", target.Name);
            Console.WriteLine();
            foreach (KeyValuePair <string, string> item in commands)
            {
                Console.WriteLine(item.Key + " - " + item.Value);
            }
        }