Exemple #1
0
 private void SetAsAfter_Click(object sender, EventArgs e)
 {
     try
     {
         var    seed = (string)DGV.CurrentRow.Cells["dgv_tinystate"].Value;
         int    adv  = (Frames[DGV.CurrentRow.Index].rt as Core.EggResult).FramesUsed;
         uint[] St   = FuncUtil.SeedStr2Array(seed);
         var    tmt  = new RNG.TinyMT(St);
         for (int i = adv; i > 0; i--)
         {
             tmt.Next();
         }
         Status = tmt.status;
     }
     catch
     { }
 }
Exemple #2
0
 private void SetAsAfter_Click(object sender, EventArgs e)
 {
     try
     {
         var    seed = (string)DGV.CurrentRow.Cells["dgv_tinystate"].Value;
         int    adv  = (Frames[DGV.CurrentRow.Index].rt as Core.EggResult).FramesUsed;
         uint[] St   = FuncUtil.SeedStr2Array(seed);
         var    tmt  = new RNG.TinyMT(St);
         for (int i = adv; i > 0; i--)
         {
             tmt.Next();
         }
         Status = tmt.status;
         var newtarget = TargetFrame.Value - (int)DGV.CurrentRow.Cells["dgv_Frame"].Value - adv;
         TargetFrame.Value = newtarget > 0 ? newtarget : TargetFrame.Value;
     }
     catch (NullReferenceException)
     {
         Error(NOSELECTION_STR[lindex]);
     }
 }