示例#1
0
        public void Del(int id)
        {
            var model = fakedb.GetStudentById(id);

            if (model != null)
            {
                var r = MessageBox.Show($"确认删除当前用户:{model.Name}?", "操作提示", MessageBoxButton.OK, MessageBoxImage.Question);
                if (r == MessageBoxResult.OK)
                {
                    fakedb.DelStudent(model.Id);
                    this.Query();
                }
            }
        }