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