private void btnAdd_Click(object sender, EventArgs e) { frmAddCustomer frm = new frmAddCustomer(); frm.CheckAsign = 1; frm.ShowDialog(); dGV_Customer.DataSource = _cus.GetListCustomerMySQL(); }
private void tSB_Add_Click(object sender, EventArgs e) { frmAddCustomer add = new frmAddCustomer(); add.CheckAsign = 1; add.ShowDialog(); dGV_Customer.DataSource = pCus.GetListCustomerMySQL(); SetColorTable(); }
private void btnEdit_Click(object sender, EventArgs e) { frmAddCustomer update = new frmAddCustomer(); update.CheckAsign = 2; update.profile = ProFileCus(dGV_Customer); update.ShowDialog(); dGV_Customer.DataSource = _cus.GetListCustomerMySQL(); }
private void dGV_Customer_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { frmAddCustomer update = new frmAddCustomer(); update.CheckAsign = 2; update.profile = ProFileCus(dGV_Customer); update.ShowDialog(); dGV_Customer.DataSource = pCus.GetListCustomerMySQL(); SetColorTable(); }