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()); }
public void StopClientActiveCommands(List <int> clientIds, RegisteredDynamicCommand dynamicCommand) { DataTransferProtocolFactory.ExecuteProcedure("StopClientActiveCommands", clientIds, dynamicCommand.Id); }
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); }
public void StopDynamicCommands(List <RegisteredDynamicCommand> dynamicCommands) { DataTransferProtocolFactory.ExecuteProcedure("StopDynamicCommands", dynamicCommands.Select(x => x.Id).ToList()); }