private void btnThemLop_Click(object sender, EventArgs e) { var fThem = new fLop(null); fThem.UpdateEventHandler += fLop_UpdateEventHandler; fThem.ShowDialog(); }
private void btnSuaLop_Click(object sender, EventArgs e) { Lop lop = lopBindingSource.Current as Lop; if (lop != null) { var fSua = new fLop(lop); fSua.UpdateEventHandler += fLop_UpdateEventHandler; fSua.ShowDialog(); } }