Exemplo n.º 1
0
 /// <summary>
 /// Provides a deterministic way to create the AddCreditNoteModel property.
 /// </summary>
 public static void CreateAddCreditNoteModel()
 {
     if (_addCreditNote == null)
     {
         _addCreditNote =new AddCreditNoteModel();
     }
 }
Exemplo n.º 2
0
 void AddCreditNote_Loaded(object sender, RoutedEventArgs e)
 {
     vm = this.DataContext as AddCreditNoteModel;
     Guid InvoiceNo = new Guid(PresentationUtility.ParseQueryString(NavigationService.CurrentSource, "InvoiceNo"));
     vm.Setup(InvoiceNo);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Provides a deterministic way to delete the AddCreditNoteModel property.
 /// </summary>
 public static void ClearAddCreditNoteModel()
 {
     _addCreditNote.Cleanup();
     _addCreditNote = null;
 }