public void AddStepIndex(string scriptName, int stepIndex) { //scriptName = scriptName.Substring(0, scriptName.IndexOf(".")); var bko = (from bk in BreakPointObjList where bk.SriptName == scriptName select bk).FirstOrDefault(); if (bko != null) { bko.AddStepIndex(stepIndex); } else { var bk = new BreakPointObj(scriptName); bk.AddStepIndex(stepIndex); BreakPointObjList.Add(bk); } }
public BreakPointObj(BreakPointObj bko) { SriptName = bko.SriptName; StepIndexList = bko.GetStepsIndexs(); Enable = true; }