private void LocationCheckBox_Unchecked(object sender, RoutedEventArgs e) { lightStartBox.IsEnabled = true; LightStartMinutesBox.IsEnabled = true; darkStartBox.IsEnabled = true; DarkStartMinutesBox.IsEnabled = true; applyButton.IsEnabled = true; locationBlock.Visibility = Visibility.Collapsed; SetOffsetVisibility(Visibility.Collapsed); userFeedback.Text = Properties.Resources.msgClickApply;//Click on apply to save changes taskShedHandler.RemoveLocationTask(); }
private void DisableLocationMode() { lightStartBox.IsEnabled = true; LightStartMinutesBox.IsEnabled = true; darkStartBox.IsEnabled = true; DarkStartMinutesBox.IsEnabled = true; applyButton.Visibility = Visibility.Visible; applyButton.IsEnabled = true; locationBlock.Visibility = Visibility.Collapsed; StackPanelLocationTime.Visibility = Visibility.Collapsed; StackPanelTimePicker.Visibility = Visibility.Visible; TextBlockDark.Visibility = Visibility.Visible; TextBlockLight.Visibility = Visibility.Visible; SetOffsetVisibility(Visibility.Collapsed); userFeedback.Text = Properties.Resources.msgClickApply;//Click on apply to save changes taskSchHandler.RemoveLocationTask(); }