internal void copy(Discription discription) { this.itemCode = discription.ItemCode; this.itemDiscription = discription.ItemDiscription; this.barcode = discription.Barcode; this.addToPrintList = discription.AddToPrintList; this.numberOfPrint = discription.numberOfPrint; this.searchCode = discription.barcode; }
void item_itemChanged(Discription item) { item.AddToPrintList = false; if (item.SearchCode != "") { using (MyOledbHandler connection = new MyOledbHandler()) { discriptionInstence = connection.getDiscriptionLocal(item.SearchCode); } } list.Clear(); for (int i = 0; i < discriptionInstence.Rows.Count; i++) { list.Add(new Discription(discriptionInstence.Rows[i][0].ToString(), discriptionInstence.Rows[i][1].ToString(), discriptionInstence.Rows[i][2].ToString())); } this.discriptionListBox.DataSource = null; this.discriptionListBox.DataSource = list; discriptionListBox.Show(); }
public EventArgument(Discription obj) { module = obj; }