Пример #1
0
        private void AuditWindow_Closed(object sender, EventArgs e)
        {
            AuditRecordWindow auditWindow = sender as AuditRecordWindow;

            if (auditWindow != null)
            {
                if (auditWindow.isOk == true)
                {
                    DgUserDataBind();
                }
                auditWindow.Closed -= AuditWindow_Closed;
            }
        }
Пример #2
0
        private void tb_Audit_Click(object sender, RoutedEventArgs e)
        {
            Button btn = e.Source as Button;
            InvestigationRecordViewDto record = btn.Tag as InvestigationRecordViewDto;

            if (record.State != InvestigationRecordStateType.FinishedAndNoAudit)
            {
                MessageBox.Show("该调查已审核或还未完成");
                return;
            }
            AuditRecordWindow auditWindow = new AuditRecordWindow(record.Id);

            auditWindow.Closed += AuditWindow_Closed;
            auditWindow.ShowDialog();
        }