public TicketButtonViewModel(OpenTicketData openTicketData, Resource baseResource)
 {
     _openTicketData = openTicketData;
     _baseResourceId = baseResource != null ? baseResource.Id : 0;
     OpenTicketCommand = new DelegateCommand<string>(OnOpenTicketCommand);
     SelectTicketCommand = new DelegateCommand<string>(OnSelectTicket);
 }
 public OpenTicketButtonViewModel(OpenTicketData openTicketData, bool shouldWrap)
 {
     Id = openTicketData.Id;
     LastOrderDate = openTicketData.LastOrderDate;
     TicketNumber = openTicketData.TicketNumber;
     TargetAccountName = openTicketData.TargetAccountName;
     AccountName = openTicketData.AccountName;
     RemainingAmount = openTicketData.RemainingAmount;
     Date = openTicketData.Date;
     WrapText = shouldWrap;
 }