public LoginPage() { InitializeComponent(); _SerializationService = Template10.Services.SerializationService.SerializationService.Json; Loaded += (sender, args) => { if (string.IsNullOrEmpty(UserNameBox.Text)) { UserNameBox.Focus(FocusState.Keyboard); } else { PasswordBox.Focus(FocusState.Keyboard); } }; KeyUp += (sender, args) => { if (args.Key == VirtualKey.Enter) { LoginButton_OnClick(sender, args); } }; }
public SettingsPage() { //UseLightThemeToggleSwitch.Visibility = Windows.UI.Xaml.Visibility.Collapsed; InitializeComponent(); NavigationCacheMode = NavigationCacheMode.Required; _SerializationService = Template10.Services.SerializationService.SerializationService.Json; }
public SettingsPage() { InitializeComponent(); _SerializationService = Template10.Services.SerializationService.SerializationService.Json; var settings = ApplicationData.Current.LocalSettings; ObservableCollection<Jeedom.Model.Command> GeolocCmd = new ObservableCollection<Jeedom.Model.Command>(); foreach (var Equipement in RequestViewModel.Instance.EqLogicList.Where(w => w.eqType_name.Equals("geoloc"))) { foreach (var Cmd in Equipement.GetInformationsCmds()) GeolocCmd.Add(Cmd); } HomePosition_Cmd.ItemsSource = GeolocCmd; MobilePosition_Cmd.ItemsSource = GeolocCmd; if (GeolocCmd.Count() == 0) Location.IsEnabled = false; else Location.IsEnabled = true; var GeolocObjectId = settings.Values["GeolocObjectId"]; if (GeolocObjectId != null) { foreach (var ObjectsSelect in GeolocCmd.Where(w => w.id.Equals(GeolocObjectId))) { MobilePosition_Cmd.SelectedItem = ObjectsSelect; } } var HomeObjectId = settings.Values["HomeObjectId"]; if (HomeObjectId != null) { foreach (var ObjectsSelect in GeolocCmd.Where(w => w.id.Equals(HomeObjectId))) { HomePosition_Cmd.SelectedItem = ObjectsSelect; } } var ObjetctPush = RequestViewModel.Instance.EqLogicList.Where(w => w.eqType_name.Equals("pushNotification")); MobileNotification.ItemsSource = ObjetctPush; if (ObjetctPush.Count() == 0) notify.IsEnabled = false; else notify.IsEnabled = true; var NotificationId = settings.Values["NotificationObjectId"]; if (NotificationId != null) { foreach (var ObjectsSelect in RequestViewModel.Instance.EqLogicList.Where(w => w.id.Equals(NotificationId))) { MobileNotification.SelectedItem = ObjectsSelect; } } if (settings.Values["Status"] != null) { Status.Text = settings.Values["Status"].ToString(); } // Extract and display location data set by the background task if not null MobilePosition_Latitude.Text = (settings.Values["Latitude"] == null) ? "No data" : settings.Values["Latitude"].ToString(); MobilePosition_Longitude.Text = (settings.Values["Longitude"] == null) ? "No data" : settings.Values["Longitude"].ToString(); MobilePosition_Accuracy.Text = (settings.Values["Accuracy"] == null) ? "No data" : settings.Values["Accuracy"].ToString(); }
public SettingsPage() { InitializeComponent(); _SerializationService = Template10.Services.SerializationService.SerializationService.Json; tb_sNr.MaxLength = 5; tb_sy.MaxLength = 2; tb_sg.MaxLength = 3; LoadSavedSettings(); LoadRoomList(); LoadBackgroundTaskSettings(); }
public SettingsPage() { InitializeComponent(); _SerializationService = Template10.Services.SerializationService.SerializationService.Json; var settings = ApplicationData.Current.LocalSettings; ObservableCollection <Jeedom.Model.Command> GeolocCmd = new ObservableCollection <Jeedom.Model.Command>(); foreach (var Equipement in RequestViewModel.Instance.EqLogicList.Where(w => w.EqTypeName.Equals("geoloc"))) { foreach (var Cmd in Equipement.GetInformationsCmds()) { GeolocCmd.Add(Cmd); } } HomePosition_Cmd.ItemsSource = GeolocCmd; MobilePosition_Cmd.ItemsSource = GeolocCmd; if (GeolocCmd.Count() == 0) { Location.IsEnabled = false; } else { Location.IsEnabled = true; } var GeolocObjectId = settings.Values["GeolocObjectId"]; if (GeolocObjectId != null) { foreach (var ObjectsSelect in GeolocCmd.Where(w => w.Id.Equals(GeolocObjectId))) { MobilePosition_Cmd.SelectedItem = ObjectsSelect; } } var HomeObjectId = settings.Values["HomeObjectId"]; if (HomeObjectId != null) { foreach (var ObjectsSelect in GeolocCmd.Where(w => w.Id.Equals(HomeObjectId))) { HomePosition_Cmd.SelectedItem = ObjectsSelect; } } if (settings.Values["Status"] != null) { Status.Text = settings.Values["Status"].ToString(); } // Extract and display location data set by the background task if not null MobilePosition_Latitude.Text = (settings.Values["Latitude"] == null) ? "No data" : settings.Values["Latitude"].ToString(); MobilePosition_Longitude.Text = (settings.Values["Longitude"] == null) ? "No data" : settings.Values["Longitude"].ToString(); MobilePosition_Accuracy.Text = (settings.Values["Accuracy"] == null) ? "No data" : settings.Values["Accuracy"].ToString(); }
public SitesPage() { InitializeComponent(); _SerializationService = Template10.Services.SerializationService.SerializationService.Json; _searchTimer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(100) }; _searchTimer.Tick += SearchTimerOnTick; NavigationCacheMode = NavigationCacheMode.Enabled; Loaded += (sender, args) => SearchBox.Focus(FocusState.Keyboard); }
public SettingsPage() { InitializeComponent(); NavigationCacheMode = NavigationCacheMode.Required; _SerializationService = Template10.Services.SerializationService.SerializationService.Json; }
public SettingsPage() { InitializeComponent(); _SerializationService = Template10.Services.SerializationService.SerializationService.Json; }
public AxisPage() { this.InitializeComponent(); this.serializationService = Template10.Services.SerializationService.SerializationService.Json; this.NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Enabled; }
public SettingsPage() { InitializeComponent(); _SerializationService = Template10.Services.SerializationService.SerializationService.Json; }
public SettingsPage() { InitializeComponent(); NavigationCacheMode = NavigationCacheMode.Required; _SerializationService = Template10.Services.SerializationService.SerializationService.Json; }
public SettingsPage() { InitializeComponent(); _SerializationService = Template10.Services.SerializationService.SerializationService.Json; //this.Loaded += SettingsPage_Loaded; ; //Set the toggle switches in the customize tab }
public Settings() { InitializeComponent(); _SerializationService = Template10.Services.SerializationService.SerializationService.Json; NavigationCacheMode = NavigationCacheMode.Enabled; }