public ViewModelFactory(IValidationRuleFactory validationRuleFactory, IComponentsController componentsController, IClientFactory clientCreator, IApp app) { this.validationRuleFactory = validationRuleFactory; this.componentsController = componentsController; this.clientCreator = clientCreator; this.app = app; }
public LoginPageViewModel(IEnterValidationRule enterValidationRule, IComponentsController componentsController, IMainClient mainClient, IApp app) { this.validatablePropertyCollection.Add("Login"); this.validatablePropertyCollection.Add("Password"); this.enterValidationRule = enterValidationRule; this.componentsController = componentsController; this.mainClient = mainClient; this.app = app; }
public MainPageViewModel(IUpdateAccountValidationRule updateAccountValidationRule, IComponentsController componentsController, IMainClient mainClient, UserDTO userDTO) { this.validatablePropertyCollection.Add("LastName"); this.validatablePropertyCollection.Add("FirstName"); this.validatablePropertyCollection.Add("SecondName"); this.updateAccountValidationRule = updateAccountValidationRule; this.componentsController = componentsController; this.mainClient = mainClient; this.userDTO = userDTO; }
public DataPageViewModel(IDataNotesValidationRule dataNotesValidationRule, IComponentsController componentsController, IMainClient mainClient, IApp app, AccountDTO accountDTO, UserDTO userDTO, int id) { this.validatablePropertyCollection.Add("Topic"); this.validatablePropertyCollection.Add("Text"); this.dataNotesValidationRule = dataNotesValidationRule; this.componentsController = componentsController; this.mainClient = mainClient; this.app = app; this.accountDTO = accountDTO; this.userDTO = userDTO; this.id = id; }