Ejemplo n.º 1
0
 private void CheckBox_Unchecked(object sender, RoutedEventArgs e)
 {
     if (ExtensibilityApp.IsLockScreenApplicationRegistered())
     {
         ExtensibilityApp.UnregisterLockScreenApplication();
     }
     useIt.IsChecked = ExtensibilityApp.IsLockScreenApplicationRegistered();
 }
Ejemplo n.º 2
0
 private void CheckBox_Checked(object sender, RoutedEventArgs e)
 {
     if (bg.FileExists("Background.jpg"))
     {
         if (!ExtensibilityApp.IsLockScreenApplicationRegistered())
         {
             ExtensibilityApp.RegisterLockScreenApplication();
         }
         useIt.IsChecked = ExtensibilityApp.IsLockScreenApplicationRegistered();
     }
     else
     {
         MessageBox.Show("Choose background first");
         useIt.IsChecked = false;
     }
 }
Ejemplo n.º 3
0
 private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
 {
     string[] names = bg.GetFileNames();
     if (bg.FileExists("Background.jpg"))
     {
         IsolatedStorageFileStream stream = bg.OpenFile("Background.jpg", FileMode.Open, FileAccess.Read);
         BitmapImage bitmap = new BitmapImage();
         bitmap.SetSource(stream);
         bgImage.Source = bitmap;
         stream.Close();
     }
     if (IsolatedStorageSettings.ApplicationSettings.Contains("GestureLength"))
     {
         lengthSlider.Value = (double)IsolatedStorageSettings.ApplicationSettings["GestureLength"];
     }
     else
     {
         lengthSlider.Value = 0.2;
     }
     useIt.IsChecked = ExtensibilityApp.IsLockScreenApplicationRegistered();
 }