/// <summary> /// Xử lý sự kiện thêm /// </summary> private void Them() { Window window = new Window(); ucHeThongTKTHCT uc = new ucHeThongTKTHCT(); uc.TthaiNvu = ""; window.WindowStartupLocation = WindowStartupLocation.CenterScreen; window.Title = DatabaseConstant.layNgonNguTieuDeForm(DatabaseConstant.Function.KT_HE_THONG_TKTH); window.Content = uc; window.ShowDialog(); TimKiem(); }
/// <summary> /// Xử lý sự kiện sửa /// </summary> private void Xem() { HT_TKTH_CTIET dr = (HT_TKTH_CTIET)raddgrDanhSachTK.SelectedItem; if (dr == null) { LMessage.ShowMessage("M.DungChung.ChuaChonBanGhi", LMessage.MessageBoxType.Warning); } else { Window window = new Window(); ucHeThongTKTHCT uc = new ucHeThongTKTHCT(dr.ID, DatabaseConstant.Action.XEM); window.WindowStartupLocation = WindowStartupLocation.CenterScreen; window.Title = DatabaseConstant.layNgonNguTieuDeForm(DatabaseConstant.Function.KT_HE_THONG_TKTH); window.Content = uc; window.ShowDialog(); TimKiem(); } }