/// <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); }
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); } }
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); } }
/// <summary> /// 插入一步 /// </summary> /// <param name="stapInfo"></param> public void InsertAStap(StapInfo stapInfo) { stapInfo.index = ++currIndex; staps.Insert(currIndex, stapInfo); }