コード例 #1
0
 private void Product_Load(object sender, EventArgs e)
 {
     Inventory.Database.ProductData Pdt = new Inventory.Database.ProductData();
     try
     {
         Pdt.FnConn();
         DataTable dt = Pdt.FillData();
         gridControl1.DataSource = dt;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message.ToString());
     }
 }
コード例 #2
0
        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            New_Product a = new New_Product(null, null);

            a.ShowDialog();
            Inventory.Database.ProductData Pdt = new Inventory.Database.ProductData();
            try
            {
                Pdt.FnConn();
                DataTable dt = Pdt.FillData();
                gridControl1.DataSource = dt;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }
コード例 #3
0
        private void repositoryItemCheckEdit1_CheckedChanged(object sender, EventArgs e)
        {
            DataRow     row         = gridView1.GetDataRow(gridView1.FocusedRowHandle);
            string      ProductCode = row["productCode"].ToString();
            New_Product NewProd     = new New_Product(ProductCode, "Product");

            NewProd.ShowDialog();

            Inventory.Database.ProductData Prod = new Inventory.Database.ProductData();
            try
            {
                Prod.FnConn();
                DataTable dtProd = Prod.FillData();
                gridControl1.DataSource = dtProd;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }