Ejemplo 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();
        }
        public ConnectPage()
        {
            this.InitializeComponent();

            _vmBinder = vmBinder.GetInstance();

            DataContext = _vmBinder;
        }
Ejemplo n.º 3
0
        private async void btnPurchase_Click(object sender, RoutedEventArgs e)
        {
            await Pebble_Time_Manager.Helper.Purchases.getReference().Purchase("pebble_sports");

            vmBinder _vmBinder = vmBinder.GetInstance();

            _vmBinder.Sport.Purchased = true;
        }
Ejemplo n.º 4
0
        private void Page_Unloaded(object sender, RoutedEventArgs e)
        {
            vmBinder _vm = vmBinder.GetInstance();

            _vm.Commands.SearchStore    = false;
            _vm.Commands.FaceStore      = false;
            _vm.Commands.AppStore       = false;
            _vm.Store.DownloadAvailable = false;
        }
        public WatchAppsPage()
        {
            this.InitializeComponent();

            _vmBinder = vmBinder.GetInstance();

            _TimeLineSynchronizer = _vmBinder.TimeLineSynchronizer;

            DataContext = _vmBinder;
        }
Ejemplo n.º 6
0
        public WatchAppsStore()
        {
            this.InitializeComponent();

            this.navigationHelper            = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            _vmBinder   = vmBinder.GetInstance();
            DataContext = _vmBinder;
        }
Ejemplo n.º 7
0
        public PaceApp()
        {
            this.InitializeComponent();

            this.navigationHelper            = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            // ApplicationView.GetForCurrentView().SetDesiredBoundsMode(ApplicationViewBoundsMode.UseCoreWindow);

            vmBinder _vmBinder = vmBinder.GetInstance();

            _vmBinder.Sport.FatalError += vmPace_FatalError;
            DataContext = _vmBinder;

            _geolocator = new Geolocator();
        }
        public TennisApp()
        {
            this.InitializeComponent();

            this.navigationHelper            = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            //ApplicationView.GetForCurrentView().SetDesiredBoundsMode(ApplicationViewBoundsMode.UseCoreWindow);

            _vmBinder = vmBinder.GetInstance();

            DataContext = _vmBinder;

            Tennis_Statistics.Helpers.Purchases.getReference().Unlock(255);

            ShowPage(null);

            Initialize();
        }
Ejemplo n.º 9
0
        public SettingsPage()
        {
            this.InitializeComponent();

            this.navigationHelper            = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            vmBinder _vmBinder = vmBinder.GetInstance();

            _TimeLineSynchronizer  = _vmBinder.TimeLineSynchronizer;
            _vmBinder.UpdateStatus = "";
            _vmBinder.BackupStatus = "";
            _vmBinder.MoreInfo     = false;
            //_vmBinder.NotificationsHandler.FatalError += NotificationsHandler_FatalError;

#if DEBUG
            btnClearFiles.Visibility = Visibility.Visible;
#endif

            DataContext = _vmBinder;
        }