Exemple #1
0
        private void btnNew_brand_Click(object sender, EventArgs e)
        {
            Newbrand a = new Newbrand(null);

            a.ShowDialog();
            ItemsLoad();
        }
Exemple #2
0
        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Newbrand a = new Newbrand(null);

            a.ShowDialog();
            Test.Inventory.Database.NewBrandData Brand = new Inventory.Database.NewBrandData();
            try
            {
                Brand.FnConn();
                DataTable dt = Brand.FillData();
                gridControl1.DataSource = dt;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }
Exemple #3
0
        private void repositoryItemCheckEdit1_CheckedChanged(object sender, EventArgs e)
        {
            DataRow  row      = gridView1.GetDataRow(gridView1.FocusedRowHandle);
            string   Brand_ID = row["slno"].ToString();
            Newbrand NewBrand = new Newbrand(Brand_ID);

            NewBrand.ShowDialog();
            Inventory.Database.NewBrandData Brand = new Inventory.Database.NewBrandData();
            try
            {
                Brand.FnConn();
                DataTable dt = Brand.FillData();
                gridControl1.DataSource = dt;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }