Beispiel #1
0
 public InvoiceInformationViewModel(DAL.EDMX.Client client, AccessYear ay)
 {
     Client      = client;
     AY          = ay;
     companyRepo = new CompanyRepository();
     clientRepo  = new ClientRepository();
     LoadCompayDetails();
 }
Beispiel #2
0
 public GenerateInvoiceViewModel(DAL.EDMX.Client client)
 {
     accessRepo    = new AccessYearRepository();
     invoiceRepo   = new ClientInvoiceRespository();
     Client        = client;
     NoRecordFound = Visibility.Collapsed;
     LoadAccessYear();
     Messenger.Default.Register <InvoiceInformationViewModel>(this, (send) =>
     {
         LoadInvoices();
     });
 }