private void AddTimeAnchor(int hour, int minute, int second, TransactionBoxControl boxControl, TransactionEvent transactionEvent) { var timeEvent = new TimeLineEvent(boxControl.Transaction.Identificator, transactionEvent, boxControl.HighlightColor); var anchor = new FullTimeAnchor(hour, minute, second, currentX, timeEvent, transactionEvent.Completion); anchors.Add(anchor); layout.Children.Add(anchor, xConstraint: Constraint.RelativeToParent(p => anchor.LeftX)); scrollView.ScrollToAsync(anchor, ScrollToPosition.End, true); currentX += (float)anchor.Width + FullTimeSpacing; }
private void AddTimeAnchorWithoutEvent(int hour, int minute, int second) { // var timeEvent = new TimeLineEvent(boxControl.Transaction.Identificator, transactionEvent, boxControl.HighlightColor); var anchor = new FullTimeAnchor(hour, minute, second, currentX, null, TransactionCompletion.None) { WithEvent = false }; anchors.Add(anchor); layout.Children.Add(anchor, xConstraint: Constraint.RelativeToParent(p => anchor.LeftX)); currentX += (float)anchor.Width + FullTimeSpacing; }