Esempio n. 1
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="o"></param>
 public ScratchUnit(OneData o)
 {
     startstep  = o.startstep;
     endstep    = o.endstep;
     lr         = o.lr;
     lstscratch = new List <ScratchChip>();
     foreach (Tuple <int, int> d in o.StepList)
     {
         ScratchChip s = new ScratchChip
         {
             judge = EnumJudge.NOTYET,
             step  = d.Item1,
             data  = d.Item2
         };
         lstscratch.Add(s);
     }
 }
Esempio n. 2
0
    public ScratchUnit MakeScratchUnit(RECORD o)
    {
        ScratchUnit rtn = new ScratchUnit();

        rtn.startstep  = o.startstep;
        rtn.endstep    = o.endstep;
        rtn.lr         = o.lr;
        rtn.lstscratch = new List <ScratchChip>();
        foreach (StepData d in o.StepList)
        {
            ScratchChip s = new ScratchChip
            {
                judge = EnumJudge.NOTYET,
                step  = d.Step,
                data  = d.Data
            };
            rtn.lstscratch.Add(s);
        }
        return(rtn);
    }