public void AddTimeNode(Timer t, TimeNode tn) { TimerTimeNodeObject to = new TimerTimeNodeObject(t, tn); to.OffsetY = OffsetY; to.Height = Height; to.SecondsPerPixel = SecondsPerPixel; to.MaxTime = maxTime; to.DraggingMode = DraggingMode; to.ShowName = ShowName; to.LineColor = LineColor; AddNode(to); }
public void RemoveTimer(Timer timer) { TimerTimeNodeObject to = (TimerTimeNodeObject)nodes.FirstOrDefault(t => (t as TimerTimeNodeObject).Timer == timer); if (to != null) { RemoveObject(to, true); } if (timers.Contains(timer)) { timers.Remove(timer); } ReDraw(); }
public void AddTimeNode(Timer t, TimeNode tn) { TimerTimeNodeObject to = new TimerTimeNodeObject (t, tn); to.OffsetY = OffsetY; to.Height = Height; to.SecondsPerPixel = SecondsPerPixel; to.MaxTime = maxTime; to.DraggingMode = DraggingMode; to.ShowName = ShowName; to.LineColor = LineColor; AddNode (to); }