예제 #1
0
 public void RemoveStoredData(List <ClientViewModel> clients)
 {
     Logger.Send(clients.Count == 1
         ? string.Format((string)Application.Current.Resources["RemoveClient"], clients[0].UserName)
         : string.Format((string)Application.Current.Resources["RemoveClients"], clients.Count));
     DataTransferProtocolFactory.ExecuteProcedure("RemoveClients", clients.Select(x => x.Id).ToList());
 }
예제 #2
0
 public void StopClientActiveCommands(List <int> clientIds, RegisteredDynamicCommand dynamicCommand)
 {
     DataTransferProtocolFactory.ExecuteProcedure("StopClientActiveCommands", clientIds, dynamicCommand.Id);
 }
예제 #3
0
 public void ChangeGroup(List <int> clients, string newName)
 {
     Logger.Send(string.Format((string)Application.Current.Resources["ChangeClientsGroup"], clients.Count,
                               newName));
     DataTransferProtocolFactory.ExecuteProcedure("ChangeGroup", clients, newName);
 }
예제 #4
0
 public void StopDynamicCommands(List <RegisteredDynamicCommand> dynamicCommands)
 {
     DataTransferProtocolFactory.ExecuteProcedure("StopDynamicCommands",
                                                  dynamicCommands.Select(x => x.Id).ToList());
 }