Example #1
0
 /// <summary>
 /// Provides a deterministic way to create the AddCreditNoteModel property.
 /// </summary>
 public static void CreateAddCreditNoteModel()
 {
     if (_addCreditNote == null)
     {
         _addCreditNote =new AddCreditNoteModel();
     }
 }
Example #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);
 }
Example #3
0
 /// <summary>
 /// Provides a deterministic way to delete the AddCreditNoteModel property.
 /// </summary>
 public static void ClearAddCreditNoteModel()
 {
     _addCreditNote.Cleanup();
     _addCreditNote = null;
 }