Exemplo n.º 1
0
 /// <summary>
 /// The ButtonAddResponse_Click method.
 /// </summary>
 /// <param name="sender">The <paramref name="sender"/> parameter.</param>
 /// <param name="args">The <paramref name="args"/> parameter.</param>
 private void ButtonAddResponse_Click(object sender, EventArgs args)
 {
     using (var addRuleResponseForm = new AddRuleResponseForm(lvRuleResponses))
     {
         if (addRuleResponseForm.ShowDialog() == DialogResult.OK)
         {
             lvRuleResponses.Refresh();
         }
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// The ButtonAddResponse_Click method.
        /// </summary>
        /// <param name="sender">The <paramref name="sender"/> parameter.</param>
        /// <param name="args">The <paramref name="args"/> parameter.</param>
        private void ButtonAddResponse_Click(object sender, EventArgs args)
        {
            using (var addRuleResponseForm = new AddRuleResponseForm(lvRuleResponses))
            {
                if (addRuleResponseForm.ShowDialog() != DialogResult.OK)
                    return;

                HaveResponsesChanged = true;
                lvRuleResponses.Refresh();
            }
        }