Example #1
0
        private void Add_Ctg()
        {
            AU_Category f = new AU_Category("");

            f.D += new AU_Category.Mydel(ShowCtg);
            f.ShowDialog();
        }
Example #2
0
        private void btnAdd_Ctg_Click(object sender, EventArgs e)
        {
            DGV_Items.DataSource = null;
            AU_Category f = new AU_Category("");

            f.D += new AU_Category.Mydel(ShowDGV);
            f.ShowDialog();
        }
Example #3
0
        private void Edit_Ctg()
        {
            DataGridViewSelectedRowCollection r = DGV_Show.SelectedRows;

            if (r.Count == 1)
            {
                string      id_ctg = r[0].Cells["Mã loại hàng"].Value.ToString();
                AU_Category f      = new AU_Category(id_ctg);
                f.D += new AU_Category.Mydel(ShowCtg);
                f.ShowDialog();
            }
        }
Example #4
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();
            }
        }