private void DefaultHourAndMinuteSelected() { SelectedHour = (ButtonTimeTask)MainHours.Children.FirstOrDefault(); SelectedHour.BackgroundColor = Color.LightGreen; SelectedMinute = (ButtonTimeTask)MainMinutes.Children.FirstOrDefault(); SelectedMinute.BackgroundColor = Color.LightGreen; }
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; }
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); }); }
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(); }); }
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); }); }
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(); }); }