コード例 #1
0
ファイル: ControlRules.cs プロジェクト: woanware/snorbert
        /// <summary>
        /// 
        /// </summary>
        private void ShowAcknowledgementWindow()
        {
            if (listEvents.SelectedObjects.Count == 0)
            {
                return;
            }

            var list = listEvents.SelectedObjects.Cast<Event>().ToList();

            Signature rule = (Signature)cboRule.Items[cboRule.SelectedIndex];
            using (FormAcknowledgment formAcknowledgement = new FormAcknowledgment(_acknowledgmentClasses, list, rule.Text, _initials))
            {
                if (formAcknowledgement.ShowDialog(this) == DialogResult.OK)
                {
                    LoadRuleEvents(_currentPage);
                    _initials = formAcknowledgement.Initials;
                }
            }
        }
コード例 #2
0
ファイル: ControlEvents.cs プロジェクト: woanware/snorbert
        /// <summary>
        /// 
        /// </summary>
        private void ShowAcknowledgementWindow()
        {
            if (listEvents.SelectedObjects.Count == 0)
            {
                return;
            }

            var list = listEvents.SelectedObjects.Cast<Event>().ToList();

            using (FormAcknowledgment formAcknowledgement = new FormAcknowledgment(_acknowledgmentClasses, list, "N/A", _initials))
            {
                if (formAcknowledgement.ShowDialog(this) == DialogResult.OK)
                {
                    LoadEvents(_currentPage);
                    _initials = formAcknowledgement.Initials;
                }
            }
        }