public AdjustCreditNoteFormView(AdjustCreditNoteViewModel 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) { AdjustCreditDatePicker.IsEnabled = false; PART_TextBox.IsReadOnly = true; AmountAdjusted.IsReadOnly = true; } else { AdjustCreditDatePicker.IsEnabled = true; PART_TextBox.IsReadOnly = false; AmountAdjusted.IsReadOnly = false; } CustomGridLines.ItemsSource = DataGridTableCollection.GridLines(6, 50).AsEnumerable(); }
public AdjustCreditNoteFormView(AdjustCreditNoteViewModel 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(6, 50).AsEnumerable(); }