/// <summary> /// Add new line to the database /// </summary> /// <param name="line"></param> /// <returns>the id of this line that came from the run number in the database</returns> public int AddLine(DO.Line line) { line.Id = DalApi.Counters.LineCounter; DS.DataSource.LinesList.Add(line.Clone()); return(line.Id); }