public void SetData(CopyInfo info) { copyId = info.CopyId; startTime = info.Start_rest_time; clostTime = info.Close_rest_time; foreach (MissionInfo mission in info.subcopysList) { SubCopy sbcopy = new SubCopy(); sbcopy.SetData(mission); subCopys.Add(sbcopy); } }
public void AddTestData() { copyId = 1; SubCopy scopy1 = new SubCopy(); scopy1.subCopyID = 1; subCopys.Add(scopy1); SubCopy scopy2 = new SubCopy(); scopy2.subCopyID = 1; subCopys.Add(scopy2); }
public MainCopy(Int32 id) { copyId = id; startTime = -1; clostTime = -1; tblCopy = TableManager.GetCopyByID(id); copyState = CopyState.UNOPEN; subCopys = new List <SubCopy>(); listOrder = -1; for (int i = 0; i < 15; i++) { if (tblCopy.GetSubcopybyIndex(i) != -1) { SubCopy sub_copy = new SubCopy(tblCopy.GetSubcopybyIndex(i)); subCopys.Add(sub_copy); } } }