コード例 #1
0
        private void AddHourMinuteAnchorWithoutEvent(int hour, int minute)
        {
            var item = new HourMinuteAnchor(hour, minute, currentX, null, TransactionCompletion.None)
            {
                WithEvent = false
                            // BackgroundColor = Color.SandyBrown
            };

            anchors.Add(item);
            layout.Children.Add(item, xConstraint: Constraint.RelativeToParent(p => item.LeftX));

            currentX += (float)item.Width;
        }
コード例 #2
0
        private void AddHourMinuteAnchor(TransactionBoxControl boxControl, TransactionEvent transactionEvent, int hour, int minute)
        {
            var timeEvent =
                new TimeLineEvent(boxControl.Transaction.Identificator, transactionEvent, boxControl.HighlightColor);
            var item = new HourMinuteAnchor(hour, minute, currentX, timeEvent, transactionEvent.Completion)
            {
                // BackgroundColor = Color.SandyBrown
            };

            anchors.Add(item);
            layout.Children.Add(item, xConstraint: Constraint.RelativeToParent(p => item.LeftX));

            currentX += (float)item.Width;
        }