コード例 #1
0
        private void menuAdd_Click(object sender, EventArgs e)
        {
            AddRuleForm.kt = 2;
            AddRuleForm f = new AddRuleForm();

            f.ShowDialog();
        }
コード例 #2
0
 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();
     }
 }