public PaymentToSupplierView(PaymentToSupplierViewModel 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(); }
public PaymentToSupplierView(PaymentToSupplierViewModel 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; PayToSupDatepicker.IsEnabled = true; } else { PayToSupDatepicker.IsEnabled = false; PART_TextBox.IsReadOnly = true; btnNew.IsEnabled = false; } CustomGridLines.ItemsSource = DataGridTableCollection.GridLines(7, 50).AsEnumerable(); }