Beispiel #1
0
 public void FormSetting_Load(object sender, EventArgs e)
 {
     lbQuantifier.DataSource    = db.GetQuantifier();
     lbQuantifier.DisplayMember = "quantifier_name";
     lbQuantifier.ValueMember   = "quantifier_id";
     lbPayment.DataSource       = db.GetPayment();
     lbPayment.DisplayMember    = "payment_name";
     lbPayment.ValueMember      = "payment_id";
     lbCategory.DataSource      = db.GetCategoryTable();
     lbCategory.DisplayMember   = "category_name";
     lbCategory.ValueMember     = "category_id";
     lbDepartment.DataSource    = db.GetDepartment();
     lbDepartment.DisplayMember = "department_name";
     lbDepartment.ValueMember   = "department_id";
 }
Beispiel #2
0
 public void FormStock_Load(object sender, EventArgs e)
 {
     dtStock                          = db.GetStockInformation();
     dtQuantifier                     = db.GetQuantifier();
     dtCategory                       = db.GetCategoryTable();
     mySource.DataSource              = dtStock;
     this.category.DataSource         = dtCategory;
     this.category.DisplayMember      = "category_name";
     this.category.ValueMember        = "category_id";
     this.category.DataPropertyName   = "category_name";
     this.quantifier.DataSource       = dtQuantifier;
     this.quantifier.DisplayMember    = "quantifier_name";
     this.quantifier.ValueMember      = "quantifier_id";
     this.quantifier.DataPropertyName = "quantifier_name";
 }