Inheritance: TimeNodeObject
Exemple #1
0
        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);
        }
Exemple #2
0
        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();
        }
Exemple #3
0
 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);
 }