public LoginViewModel(ILogger logger, IHttpClient httpClient, IInputsValidator inputsValidator, IFileManager fileManager) { this.logger = logger; this.httpClient = httpClient; this.inputsValidator = inputsValidator; this.fileManager = fileManager; loginCommand = new ActionCommand <object>(TryLogin); Username = "******"; }
public AddEditLineViewModel(IHttpClient httpClient, IInputsValidator inputsValidator, ILogger logger) { this.httpClient = httpClient; this.inputsValidator = inputsValidator; this.logger = logger; InitCollections(); InitCommands(); SelectedNumbers = new SelectedNumbers(); }
public AddEditClientViewModel(IInputsValidator inputsValidator, IHttpClient httpClient, ILogger logger, ICrmViewModel crmViewModel) { BirthDate = DateTime.Now.AddDays(1); ExisitngClient = false; this.inputsValidator = inputsValidator; this.httpClient = httpClient; this.logger = logger; this.crmViewModel = crmViewModel; InitCommands(); }
public MainForm(ICalculator calculator, IInputsValidator validator, ICleaner cleaner, IMemoryMeasurer measurer, BackgroundWorker worker) { _calculator = calculator; _validator = validator; _cleaner = cleaner; _measurer = measurer; _worker = worker; _bgWorkersThreads = new List <Thread>(); InitializeComponent(); PrepareWorker(); }
public SimulatorViewModel(IHttpClient httpClient, ILogger logger, IInputsValidator inputsValidator) { this.logger = logger; this.inputsValidator = inputsValidator; this.httpClient = httpClient; this.lockIdBox = true; searchUserCommand = new ActionCommand(searchUser); simulateCommand = new ActionCommand <object>(simulate); clearCommand = new ActionCommand(ClearFields); Lines = new ObservableCollection <string> { "Please select a client first." }; selectedLine = Lines[0]; Types = new ObservableCollection <string> { "Call", "SMS" }; SelectedType = Types[0]; }
public Home2Controller() { httpClient = WebClientContainer.container.GetInstance <IHttpClient>(); inputsValidator = WebClientContainer.container.GetInstance <IInputsValidator>(); }