public NewTicketCommand(IModelFactory modelFactory, IViewFactory viewFactory, ITicketDialogViewModelFactory viewModelFactory, ICloseCommandFactory closeCommandFactory, ISaveTicketCommandFactory saveTicketCommandFactory) { this.modelFactory = modelFactory; this.viewFactory = viewFactory; this.viewModelFactory = viewModelFactory; this.closeCommandFactory = closeCommandFactory; this.saveTicketCommandFactory = saveTicketCommandFactory; }
public ShowTicketDetailsCommand(IViewFactory viewFactory, ITicketDialogViewModelFactory ticketDialogViewModelFactory, ITicketRepository ticketRepository, ICloseCommandFactory closeCommandFactory, ISaveTicketCommandFactory saveTicketCommandFactory, ISelectedItem <ITicketListItemViewModel> selectedItem) { this.viewFactory = viewFactory; this.ticketDialogViewModelFactory = ticketDialogViewModelFactory; this.ticketRepository = ticketRepository; this.closeCommandFactory = closeCommandFactory; this.saveTicketCommandFactory = saveTicketCommandFactory; this.selectedItem = selectedItem; selectedItem.SelectedItemChanged += HandleSelectedItemChanged; }
public LoginViewModel(ICloseCommandFactory closeCommandFactory, IClosable closable, ICurrentUserViewModelFactory currentUserViewModelFactory, ILoginCommandFactory loginCommandFactory) { CloseCommand = closeCommandFactory.Create(closable); LoginCommand = loginCommandFactory.Create(this, closable); }