Exemplo n.º 1
0
        private void btnAdd_Ctg_Click(object sender, EventArgs e)
        {
            AU_Category f = new AU_Category("");

            f.D += new AU_Category.Mydel(ShowDGV);
            f.ShowDialog();
        }
Exemplo n.º 2
0
        private void btnUpdate_Ctg_Click(object sender, EventArgs e)
        {
            DataGridViewSelectedRowCollection r = DGV_Items.SelectedRows;

            if (r.Count == 1)
            {
                string      id_ctg = r[0].Cells["ID_Category"].Value.ToString();
                AU_Category f      = new AU_Category(id_ctg);
                f.D += new AU_Category.Mydel(ShowCtg);
                f.ShowDialog();
            }
        }