static void Main(string[] args) { using (AdminProxy proxy = new AdminProxy(new NetTcpBinding(), Config.AdminServiceAddress)) { int op = -1; while (op != 0) { op = DisplayAdminMenu(); ExecuteCommand(proxy, op); } } }
static void ExecuteCommand(AdminProxy proxy, int op) { HelperFunctions.ExecuteCommandAdmin(proxy, op); }