Пример #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;
         }
     }
 }