Exemplo n.º 1
0
 /// <summary>
 /// Called method when the user clicks on the button for adding a new rule.
 /// After that, a new form opens.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"><see cref="EventArgs"/></param>
 private void AddNewRuleClick(object sender, EventArgs e)
 {
     _ = new AddRule(this)
     {
         Visible = true
     };
 }
Exemplo n.º 2
0
        public void EditRuleRow(object sender, EventArgs e)
        {
            Control firstControl = GetClickedRuleElement(sender);

            passedRule = firstControl.DataBindings[0].DataSource as Rule;
            _          = new AddRule(this, passedRule)
            {
                Visible = true
            };
        }