Esempio n. 1
0
 private static void SetVariable(UPS target, UPSDClient client)
 {
     string[] variableParts = variable.Split(new char[] { '=' }, 2);
     variable = variableParts[0];
     if (variableParts.Length < 2)
     {
         Console.Write("Enter value for " + variable + ":");
         newValue = Console.ReadLine();
     }
     if (client.SetUPSVariable(target.Name, variable, newValue) == false)
     {
         Console.WriteLine("UNKNOWN ERROR");
         return;
     }
     Console.WriteLine("OK");
 }