public void SetSplitTime(int controlCode, int time) { if (HasSplitChanged(controlCode, time)) { if (m_splitTimes.ContainsKey(controlCode)) { SplitTime t = m_splitTimes[controlCode]; t.Time = time; t.Updated = true; } else { var t = new SplitTime(); t.Control = controlCode; t.Time = time; t.Updated = true; m_splitTimes.Add(controlCode, t); } } }