コード例 #1
0
 /// <summary>
 /// 加载当前步骤信息
 /// </summary>
 public void LoadStapInfoMation(StapInfo stapInfo)
 {
     this.stapInfo               = stapInfo;
     stapName.text               = stapInfo.name;
     stapIndex.text              = string.Format("第{0}步", stapInfo.index + 1);
     tipInfo.text                = stapInfo.tipInfo;
     needRecord.isOn             = stapInfo.needOperate;
     time.value                  = stapInfo.showTime;
     infoContain.inputFiled.text = stapInfo.infomation;
     elementList.SetInstalls(stapInfo.installs);
 }
コード例 #2
0
    public void CopyTo(Experiment other)
    {
        other.name = name;
        other.staps.Clear();
        StapInfo newStap;

        for (int i = 0; i < staps.Count; i++)
        {
            newStap = new StapInfo();
            staps[i].CopyTo(newStap);
            other.staps.Add(newStap);
        }
    }
コード例 #3
0
    public void CopyTo(StapInfo other)
    {
        other.index       = index;
        other.name        = name;
        other.tipInfo     = tipInfo;
        other.infomation  = infomation;
        other.showTime    = showTime;
        other.needOperate = needOperate;
        other.installs.Clear();
        ElementInstall install;

        for (int i = 0; i < installs.Count; i++)
        {
            install = installs[i];
            other.installs.Add(install);
        }
    }
コード例 #4
0
 /// <summary>
 /// 插入一步
 /// </summary>
 /// <param name="stapInfo"></param>
 public void InsertAStap(StapInfo stapInfo)
 {
     stapInfo.index = ++currIndex;
     staps.Insert(currIndex, stapInfo);
 }