コード例 #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;
 }
コード例 #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;
 }