private void menuAdd_Click(object sender, EventArgs e) { AddRuleForm.kt = 2; AddRuleForm f = new AddRuleForm(); f.ShowDialog(); }
private void btnAdd_Click(object sender, EventArgs e) { AddRuleForm.kt = kt; if (kt != 2) { AddRuleForm f = new AddRuleForm(); f.ShowDialog(); } else { AddRuleForm f = new AddRuleForm(); f.ShowDialog(); } }