public void MoveTimeForPanelsElement(ITLEPanelCellElement element, float wayPrecentage) { TimeIdentyficator.MovePrecentage(wayPrecentage); TimeSpan destenationTime = TimeIdentyficator.GetTime(); element.SetStartTime(destenationTime); }
public TimeSpan SetTimeCursorToPrecentage(float precentage) { TimeIdentyficator.MovePrecentage(precentage); //TimeSpan time = new TimeSpan(PanelOffsetTime.Ticks + (long)(PanelWidthTime.Ticks * precentage)); TimeSpan time = TimeIdentyficator.GetTime(); return(time); }
public void MoveTimeForPanelsElement(string elementName, float wayPrecentage) { TimeIdentyficator.MovePrecentage(wayPrecentage); TimeSpan destenationTime = TimeIdentyficator.GetTime(); foreach (var panel in Panels.Values) { panel.MovePanelCellTime(elementName, destenationTime); } }
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); }
public void MoveForwardTimeScope() { PanelOffsetTime = new TimeSpan(PanelOffsetTime.Ticks + PanelWidthTime.Ticks); UpdateTimeScope(); TimeIdentyficator.UpdateTimeScope(PanelOffsetTime, PanelOffsetTime + PanelWidthTime); }