private void pbThem_HSTD_Click(object sender, EventArgs e) { UC_SuKien_HoSoThamDu uc_HSTD = new UC_SuKien_HoSoThamDu(iMaSuKien); this.Controls.Add(uc_HSTD); uc_HSTD.Location = SubFunction.SetCenterLocation(this.Size, uc_HSTD.Size); uc_HSTD.BringToFront(); uc_HSTD.Disposed += new EventHandler(uc_HSTD_Disposed); }
private void pbSua_HSTD_Click(object sender, EventArgs e) { pbSua_HSTD.Focus(); UC_SuKien_HoSoThamDu uc_HSTD = new UC_SuKien_HoSoThamDu(iMaSuKien, lvThongTin_HSTD.SelectedItems[0].SubItems[0].Text); uc_HSTD.Disposed += new EventHandler(uc_HSTD_Disposed); this.Controls.Add(uc_HSTD); uc_HSTD.Location = SubFunction.SetCenterLocation(this.Size, uc_HSTD.Size); uc_HSTD.BringToFront(); }