Exemplo n.º 1
0
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            AddProduct fm = new AddProduct();

            fm.SetValue("", "Insert");
            if (fm.ShowDialog() == DialogResult.OK)
            {
                this.BtnSearch.PerformClick();
            }
        }
Exemplo n.º 2
0
 private void DGVShowInfo_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         string     productID = DGVShowInfo.Rows[e.RowIndex].Cells["ProductID"].Value.ToString();
         AddProduct fm        = new AddProduct();
         fm.SetValue(productID, "Update");
         if (fm.ShowDialog() == DialogResult.OK)
         {
             this.BtnSearch.PerformClick();
         }
     }
 }