}/******************************************************************************************Do NOW*********************************************************************************/ private void InvoiceData_txtbox_TextChanged(object sender, TextChangedEventArgs e) { items_cbo.IsEnabled = true; addItem_button.IsEnabled = true; MainLogic.GetItemDesc(); for (int i = 0; i < MainLogic.lstItemDesc.Count; i++) { items_cbo.Items.Add(MainLogic.lstItemDesc[i].sItemDesc); } deleteItem_btn.IsEnabled = true; editItem_btn.IsEnabled = true; }
private void DataGridView2_SelectionChanged(object sender, SelectionChangedEventArgs e) { newLstItemDesc.Clear(); dataGridView3.Items.Refresh(); if (dataGridView2.SelectedIndex < newLstLineItems.Count && bIsDeleting == false) { clsLineItems LineItems = new clsLineItems(); LineItems = (clsLineItems)dataGridView2.SelectedItem; for (int i = 0; i < newLstLineItems.Count; i++) { newLstItemDesc = MainLogic.GetItemDesc(LineItems.sItemCode); } dataGridView3.ItemsSource = newLstItemDesc; } }