private void tsmenuTimPhongTrong_Click(object sender, EventArgs e) { TimPhongTrongForm timPhongTrongForm = new TimPhongTrongForm("TiepTanForm"); timPhongTrongForm.StartPosition = FormStartPosition.CenterScreen; timPhongTrongForm.Show(); }
private void btnTimPhongTrongDeSuaPhongDat_Click(object sender, EventArgs e) { TimPhongTrongForm timPhongTrongForm = new TimPhongTrongForm("SuaVaXoaPhongDaDatForm"); timPhongTrongForm.GetCurrentRowFromDataGridView = new Action <string, string, string, string>(PassData); timPhongTrongForm.StartPosition = FormStartPosition.CenterScreen; timPhongTrongForm.Show(); }