Пример #1
0
 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             = "******";
 }
Пример #2
0
 public AddEditLineViewModel(IHttpClient httpClient, IInputsValidator inputsValidator, ILogger logger)
 {
     this.httpClient      = httpClient;
     this.inputsValidator = inputsValidator;
     this.logger          = logger;
     InitCollections();
     InitCommands();
     SelectedNumbers = new SelectedNumbers();
 }
Пример #3
0
 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();
 }
Пример #4
0
        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();
        }
Пример #5
0
        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];
        }
Пример #6
0
 public Home2Controller()
 {
     httpClient      = WebClientContainer.container.GetInstance <IHttpClient>();
     inputsValidator = WebClientContainer.container.GetInstance <IInputsValidator>();
 }