public ClientViewModel( IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IDialogService dialogService, IAddClientViewModel addClientViewModel, IAddPositionViewModel addPositionViewModel, IAddIndustryViewModel addIndustryViewModel) { _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _dialogService = dialogService; _addClientViewModel = addClientViewModel; _addPositionViewModel = addPositionViewModel; _addIndustryViewModel = addIndustryViewModel; _addClientRequest = new InteractionRequest<ResponseNotification>(); _addPositionRequest = new InteractionRequest<ResponseNotification>(); _addIndustryRequest = new InteractionRequest<ResponseNotification>(); AddClientCommand = new DelegateCommand(AddClient); RemoveClientCommand = new DelegateCommand(RemoveClient); AddPositionCommand = new DelegateCommand(AddPosition); RemovePositionCommand = new DelegateCommand(RemovePosition); AddIndustryCommand = new DelegateCommand(AddIndustry); RemoveIndustryCommand = new DelegateCommand(RemoveIndustry); EditClientCommand = new DelegateCommand<ClientModel>(EditClient); }
public ClientViewModel( IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IDialogService dialogService, IAddClientViewModel addClientViewModel, IAddPositionViewModel addPositionViewModel, IAddIndustryViewModel addIndustryViewModel) { _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _dialogService = dialogService; _addClientViewModel = addClientViewModel; _addPositionViewModel = addPositionViewModel; _addIndustryViewModel = addIndustryViewModel; _addClientRequest = new InteractionRequest <ResponseNotification>(); _addPositionRequest = new InteractionRequest <ResponseNotification>(); _addIndustryRequest = new InteractionRequest <ResponseNotification>(); AddClientCommand = new DelegateCommand(AddClient); RemoveClientCommand = new DelegateCommand(RemoveClient); AddPositionCommand = new DelegateCommand(AddPosition); RemovePositionCommand = new DelegateCommand(RemovePosition); AddIndustryCommand = new DelegateCommand(AddIndustry); RemoveIndustryCommand = new DelegateCommand(RemoveIndustry); EditClientCommand = new DelegateCommand <ClientModel>(EditClient); }