示例#1
0
        private void ExecuteRemove(object p)
        {
            if (p != null && p is ExamPeriod)
            {
                try
                {
                    var examPeriod = p as ExamPeriod;

                    ServiceDataProvider.DeleteExamPeriod(examPeriod.ExamPeriodId);
                    ExamPeriods.Remove(examPeriod);
                }
                catch (FaultException <DeleteFault> fe)
                {
                    MessageBox.Show(string.Format("{0} {1}", fe.Detail.Message, fe.Detail.Description));
                }
            }
        }