Пример #1
0
 public TicketButtonViewModel(OpenTicketData openTicketData, Entity baseEntity)
 {
     _openTicketData = openTicketData;
     _baseEntityId = baseEntity != null ? baseEntity.Id : 0;
     OpenTicketCommand = new DelegateCommand<string>(OnOpenTicketCommand);
     SelectTicketCommand = new DelegateCommand<string>(OnSelectTicket);
 }
Пример #2
0
 public TicketButtonViewModel(OpenTicketData openTicketData, Resource baseResource)
 {
     _openTicketData = openTicketData;
     _baseResourceId = baseResource != null ? baseResource.Id : 0;
     OpenTicketCommand = new DelegateCommand<string>(OnOpenTicketCommand);
     SelectTicketCommand = new DelegateCommand<string>(OnSelectTicket);
 }