private CurveItem GetCurve(string value) { CurveItem item = CurveList.Find(new Predicate <CurveItem>( delegate(CurveItem line) { return(((LogGraphCurveItem)line).ItemID == value); })); return(item); }