Example #1
0
 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;
 }
Example #2
0
 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;
 }
Example #3
0
 public LoginViewModel(ICloseCommandFactory closeCommandFactory, IClosable closable,
                       ICurrentUserViewModelFactory currentUserViewModelFactory, ILoginCommandFactory loginCommandFactory)
 {
     CloseCommand = closeCommandFactory.Create(closable);
     LoginCommand = loginCommandFactory.Create(this, closable);
 }