コード例 #1
0
 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;
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 public EventArgument(Discription obj)
 {
     module = obj;
 }