private void BtnDelete_Click(object sender, RoutedEventArgs e) { Dialog a = new Dialog() { Message = "Bạn chắc chắn muốn xóa thông tin này ?" }; a.Owner = Window.GetWindow(this); if (a.ShowDialog() == false) { return; } Staff staff = liststaff.SelectedItem as Staff; if (staff == null) { return; } manage.DeleteStaff(staff.ID); Refresh(true); }