Example #1
0
 async void DismissExtendedSplash()
 {
     device = MobileDeviceManager.ConnectLocal();
     while (!device.IsReady)
     {
         await Task.Delay(5);
     }
     if (device.IsAuthed && device.IsConnected)
     {
         rootFrame.Navigate(typeof(StartPage));
         Window.Current.Content = rootFrame;
     }
     else
     {
         rootFrame.Navigate(typeof(ConfigPage));
         Window.Current.Content = rootFrame;
     }
 }
Example #2
0
 public StartPage()
 {
     this.InitializeComponent();
     device = MobileDeviceManager.ConnectLocal();
     SetStatusBar(Color.FromArgb(255, 51, 51, 51), Colors.White);
 }
 private void conn_btn_Click(object sender, RoutedEventArgs e)
 {
     device = MobileDeviceManager.ConnectLocal();
 }