Пример #1
0
        public void MoveTimeForPanelsElement(ITLEPanelCellElement element, float wayPrecentage)
        {
            TimeIdentyficator.MovePrecentage(wayPrecentage);

            TimeSpan destenationTime = TimeIdentyficator.GetTime();

            element.SetStartTime(destenationTime);
        }
Пример #2
0
        public TimeSpan SetTimeCursorToPrecentage(float precentage)
        {
            TimeIdentyficator.MovePrecentage(precentage);
            //TimeSpan time = new TimeSpan(PanelOffsetTime.Ticks + (long)(PanelWidthTime.Ticks * precentage));
            TimeSpan time = TimeIdentyficator.GetTime();

            return(time);
        }
Пример #3
0
        public void MoveTimeForPanelsElement(string elementName, float wayPrecentage)
        {
            TimeIdentyficator.MovePrecentage(wayPrecentage);

            TimeSpan destenationTime = TimeIdentyficator.GetTime();

            foreach (var panel in Panels.Values)
            {
                panel.MovePanelCellTime(elementName, destenationTime);
            }
        }
Пример #4
0
        public void MoveBackwardTimeScope()
        {
            if (PanelOffsetTime.Ticks - PanelWidthTime.Ticks < 0)
            {
                PanelOffsetTime = new TimeSpan();
            }
            else
            {
                PanelOffsetTime = new TimeSpan(PanelOffsetTime.Ticks - PanelWidthTime.Ticks);
            }

            UpdateTimeScope();
            TimeIdentyficator.UpdateTimeScope(PanelOffsetTime, PanelOffsetTime + PanelWidthTime);
        }
Пример #5
0
 public void MoveForwardTimeScope()
 {
     PanelOffsetTime = new TimeSpan(PanelOffsetTime.Ticks + PanelWidthTime.Ticks);
     UpdateTimeScope();
     TimeIdentyficator.UpdateTimeScope(PanelOffsetTime, PanelOffsetTime + PanelWidthTime);
 }