예제 #1
0
 public TicketDialogViewModel(Ticket ticket, ICloseCommand closeCommand, IStatusListProvider statusListProvider,
                              ITechnicianListProvider technicianListProvider,
                              ITicketNoteListViewModelFactory noteListViewModelFactory,
                              ISaveTicketCommand saveTicketCommand, string header)
 {
     this.ticket  = ticket;
     CloseCommand = closeCommand;
     SaveCommand  = saveTicketCommand;
     Statuses     = statusListProvider.GetStatuses();
     Technicians  = technicianListProvider.GetTechnicians();
     Header       = header;
     Notes        = noteListViewModelFactory.Create(ticket.Id);
 }
예제 #2
0
 ITicketDialogViewModel CreateViewModel(Ticket model, ICloseCommand closeCommand,
                                        ISaveTicketCommand saveTicketCommand)
 {
     return(viewModelFactory.Create(model, closeCommand, saveTicketCommand, Strings.TicketDetails.AddHeaderText));
 }