public WatchAppsPage() { this.InitializeComponent(); _vmBinder = vmBinder.GetInstance(); _TimeLineSynchronizer = _vmBinder.TimeLineSynchronizer; DataContext = _vmBinder; }
public vmBinder() { TimeLineSynchronizer = new Connector.TimeLineSynchronizer(); WatchFaces = new vmWatchFaces(); WatchApps = new vmWatchApps(); Sport = new vmSportApp(); Tennis = new vmTennisApp(); Log = new ObservableCollection <string>(); Commands = new vmCommands(); Store = new vmStore(); #if WINDOWS_PHONE_APP NotificationsHandler = new Connector.NotificationsHandler(); #endif //Applications = new vmApps(); PageWatchFace = true; TimeLineSynchronizer.Log.CollectionChanged += Log_CollectionChanged; _Timer = new DispatcherTimer(); _Timer.Interval = TimeSpan.FromSeconds(1); _Timer.Tick += _Timer_Tick; _Timer.Start(); ConnectCommand = new RelayCommand(Connect); DisconnectCommand = new RelayCommand(Disconnect); ClearCommand = new RelayCommand(ClearLog); ResyncCommand = new RelayCommand(Resync); SynchronizeCommand = new RelayCommand(SynchronizeCalender); RestoreCommand = new RelayCommand(Restore); BackupCommand = new RelayCommand(Backup); AssociateCommand = new RelayCommand(Associate); UndoAssociationCommand = new RelayCommand(UndoAssociation); UpdateCommand = new RelayCommand(Update); ShowHideMoreInfoCommand = new RelayCommand(ShowHideMoreInfo); }