コード例 #1
0
ファイル: TimeEntry.cs プロジェクト: mavazal/AppTokiota
        private void DefaultHourAndMinuteSelected()
        {
            SelectedHour = (ButtonTimeTask)MainHours.Children.FirstOrDefault();
            SelectedHour.BackgroundColor = Color.LightGreen;

            SelectedMinute = (ButtonTimeTask)MainMinutes.Children.FirstOrDefault();
            SelectedMinute.BackgroundColor = Color.LightGreen;
        }
コード例 #2
0
        private void DefaultHourAndMinuteSelected()
        {
            SelectedHour = (ButtonTimeTask)MainHours.Children.FirstOrDefault();
            SelectedHour.BackgroundColor = Color.FromHex("40baaa");
            SelectedHour.TextColor       = Color.White;

            SelectedMinute = (ButtonTimeTask)MainMinutes.Children.FirstOrDefault();
            SelectedMinute.BackgroundColor = Color.FromHex("40baaa");
            SelectedMinute.TextColor       = Color.White;
        }
コード例 #3
0
ファイル: TimeEntry.cs プロジェクト: mavazal/AppTokiota
        protected void HourClickedEvent(object s, EventArgs a)
        {
            Device.BeginInvokeOnMainThread(() =>
            {
                var selectedHour = (s as ButtonTimeTask);
                if (SelectedHour != null)
                {
                    SelectedHour.BackgroundColor = Color.Transparent;
                }
                selectedHour.BackgroundColor = Color.LightGreen;
                SelectedHour = selectedHour;

                ChangeOptionImputation(MainMinutes);
            });
        }
コード例 #4
0
ファイル: TimeEntry.cs プロジェクト: mavazal/AppTokiota
        protected void MinuteClickedEvent(object s, EventArgs a)
        {
            Device.BeginInvokeOnMainThread(() =>
            {
                var selected = (s as ButtonTimeTask);
                if (SelectedMinute != null)
                {
                    SelectedMinute.BackgroundColor = Color.Transparent;
                }
                selected.BackgroundColor = Color.LightGreen;
                SelectedMinute           = selected;

                ExecuteSelectedHandle();
            });
        }
コード例 #5
0
        protected void HourClickedEvent(object s, EventArgs a)
        {
            Device.BeginInvokeOnMainThread(() =>
            {
                var selectedHour = (s as ButtonTimeTask);
                if (SelectedHour != null)
                {
                    SelectedHour.BackgroundColor = Color.Transparent;
                    SelectedHour.TextColor       = Color.DarkSalmon;
                }
                selectedHour.BackgroundColor = Color.FromHex("40baaa");
                selectedHour.TextColor       = Color.White;
                SelectedHour = selectedHour;

                ChangeOptionImputation(MainMinutes);
            });
        }
コード例 #6
0
        protected void MinuteClickedEvent(object s, EventArgs a)
        {
            Device.BeginInvokeOnMainThread(() =>
            {
                var selected = (s as ButtonTimeTask);
                if (SelectedMinute != null)
                {
                    SelectedMinute.BackgroundColor = Color.Transparent;
                    SelectedMinute.TextColor       = Color.DarkSalmon;
                }
                selected.BackgroundColor = Color.FromHex("40baaa");
                selected.TextColor       = Color.White;
                SelectedMinute           = selected;

                ExecuteSelectedHandle();
            });
        }