Esempio n. 1
0
        public DayConfigControl(List <UIDay> _uIDays, INavigation navigation, IScheduleOperation scheduleOperation, bool _isActive, Schedules schedules, Entities.Scheduler scheduler = null)
        {
            InitializeComponent();
            this.uIDays  = _uIDays;
            IntervalList = BuildIntervalList();
            if (scheduler != null)
            {
                SetIntervalValue(scheduler);
                SetStartAndStopValue(scheduler);
                SetDaysValue(scheduler);
                SetInterval();
                SetActiveStatusValue(scheduler);
            }
            this.scheduleOperation = scheduleOperation;
            weekControl            = new WeekControl(weekFrameLayout);
            weekControl.DaysList   = this.uIDays;
            weekFrameLayout.Children.Add(weekControl);
            WeekCardControl weekCardControl = new WeekCardControl();

            weekCardControl.DaysList = this.uIDays;
            weekexpand.Children.Add(weekCardControl);
            rawSchedules = schedules;

            this.navigation = navigation;
            BindingContext  = this;
            if (scheduler == null)
            {
                isActive         = _isActive;
                toggle.IsToggled = _isActive;
            }

            toggle.Toggled += Toggle_Toggled;
        }
Esempio n. 2
0
        public DayConfigControl()
        {
            InitializeComponent();
            weekControl = new WeekControl(weekFrameLayout);

            weekControl.DaysList = this.uIDays;
            weekFrameLayout.Children.Add(weekControl);
            WeekCardControl weekCardControl = new WeekCardControl();

            weekCardControl.DaysList = this.uIDays;
            weekexpand.Children.Add(weekCardControl);
            BindingContext = this;
            IntervalList   = BuildIntervalList();
        }