public PaymentFromCustomersView(PaymentFromCustomersViewModel model)
 {
     InitializeComponent();
     this._ViewModel = model;
     //  this.pandsViewModel = PurchaseQuotationViewModel.GetInstance();
     this.DataContext = this._ViewModel;
     if (_ViewModel.PQDetailsEntity != null)
     {
         this.dg1.ItemsSource = this._ViewModel.PQDetailsEntity;
     }
     CustomGridLines.ItemsSource = DataGridTableCollection.GridLines(7, 50).AsEnumerable();
 }
Exemple #2
0
 public PaymentFromCustomersView(PaymentFromCustomersViewModel model)
 {
     InitializeComponent();
     this._ViewModel = model;
     //  this.pandsViewModel = PurchaseQuotationViewModel.GetInstance();
     this.DataContext = this._ViewModel;
     if (_ViewModel.PQDetailsEntity != null)
     {
         this.dg1.ItemsSource = this._ViewModel.PQDetailsEntity;
     }
     if (_ViewModel.MustCompare == true)
     {
         PART_TextBox.IsReadOnly             = false;
         PayFromCustomerDatepicker.IsEnabled = true;
     }
     else
     {
         btnNew.IsEnabled                    = false;
         PART_TextBox.IsReadOnly             = true;
         PayFromCustomerDatepicker.IsEnabled = false;
         btnSave.IsEnabled                   = false;
     }
     CustomGridLines.ItemsSource = DataGridTableCollection.GridLines(7, 50).AsEnumerable();
 }