private void btn_Them_DM_Click(object sender, EventArgs e) { Dialog.DAL_DanhMuc dAL_Danh = new Dialog.DAL_DanhMuc(); dAL_Danh.ShowDialog(); try { dgv_DanhMuc.DataSource = Entities_Data.DanhMuc_Data.Get_DanhMucList(); } catch (Exception) { } }
private void Sua_DM() { if (Get_IdDM() != null) { Dialog.DAL_DanhMuc hangSX = new Dialog.DAL_DanhMuc(int.Parse(Get_IdDM())); hangSX.ShowDialog(); try { dgv_DanhMuc.DataSource = Entities_Data.DanhMuc_Data.Get_DanhMucList(); } catch (Exception) { } } }