Exemplo n.º 1
0
        public MainPage()
        {
            this.InitializeComponent();

            FrameLeft.Navigate(typeof(WatchFacesPage));
            FrameRight.Navigate(typeof(ConnectPage));

            /*if (IsMobile)
             * {
             *  MySplitView.CompactPaneLength = 0;
             *  FrameRight.Visibility = Visibility.Collapsed;
             *  MainGrid.ColumnDefinitions.RemoveAt(1);
             *  btnConnect.Visibility = Visibility.Visible;
             * }
             * else
             * {
             *  FrameRight.Navigate(typeof(ConnectPage));
             *  //FrameRight.Navigate(typeof(JavascriptPage));
             *  btnConnect.Visibility = Visibility.Collapsed;
             * }*/

            _vmBinder = vmBinder.GetInstance();
            // _vmBinder.PageWatchApp = true;

            Connector.PebbleConnector _pc = Connector.PebbleConnector.GetInstance();
            _pc.WatchItems.WatchItemListChanged += _vmBinder.WatchFaces.WatchItemListChanged;
            _pc.WatchItems.WatchItemListChanged += _vmBinder.WatchApps.WatchItemListChanged;
            _pc.WatchItems.Load();

            DataContext = _vmBinder;

            InitialiseStore();
        }
Exemplo n.º 2
0
 private void btnTennis_Click(object sender, RoutedEventArgs e)
 {
     FrameLeft.Navigate(typeof(TennisApp));
     MySplitView.IsPaneOpen = false;
 }
Exemplo n.º 3
0
 private void btnConnect_Click(object sender, RoutedEventArgs e)
 {
     FrameLeft.Navigate(typeof(ConnectPage));
     MySplitView.IsPaneOpen = false;
 }
Exemplo n.º 4
0
 private void btnPebbleStore_Click(object sender, RoutedEventArgs e)
 {
     FrameLeft.Navigate(typeof(WatchAppsStore));
     MySplitView.IsPaneOpen = false;
 }