예제 #1
0
 /// <summary>
 /// Provides a deterministic way to create the TransactionStatementViewModel property.
 /// </summary>
 public static void CreateTransactionStatementViewModel()
 {
     if (_transactionStatementViewModelPropertyName == null)
     {
         _transactionStatementViewModelPropertyName = new TransactionStatementViewModel();
     }
 }
 public TransactionStatement()
 {
     InitializeComponent();
     this.Loaded += new RoutedEventHandler(TransactionStatement_Loaded);
     _vm = this.DataContext as TransactionStatementViewModel;
 }
예제 #3
0
 /// <summary>
 /// Provides a deterministic way to delete the TransactionStatementViewModel property.
 /// </summary>
 public static void ClearTransactionStatementViewModel()
 {
     _transactionStatementViewModelPropertyName.Cleanup();
     _transactionStatementViewModelPropertyName = null;
 }