コード例 #1
0
 public CountLimitForm(EffectCountLimit ecl)
 {
     this.InitializeComponent();
     CountLimit = ecl;
     this.checkIsOath.Checked    = ecl.IsOath;
     this.checkIsInDuel.Checked  = ecl.IsInDuel;
     this.checkIsHasCode.Checked = ecl.IsHasCode;
     this.checkIsSingle.Checked  = ecl.IsSingle;
     this.numCount.Value         = ecl.Count;
 }
コード例 #2
0
 private void checkReset_CheckedChanged(object sender, EventArgs e)
 {
     if (checkCountLimit.Checked)
     {
         if (countLimit == null)
         {
             countLimit = new EffectCountLimit(numCardCode.Value);
         }
         CountLimitForm form = new CountLimitForm(countLimit);
         if (form.ShowDialog() == DialogResult.OK)
         {
             countLimit = form.CountLimit;
         }
     }
 }