private async void btnSynchronizeCalender_Click(object sender, RoutedEventArgs e) { Connector.PebbleConnector _pc = Connector.PebbleConnector.GetInstance(); await _pc.StartBackgroundTask(PebbleConnector.Initiator.Synchronize); //await _TimeLineSynchronizer.Synchronize(); }
private async void SynchronizeCalender(object obj) { try { Connector.PebbleConnector _pc = Connector.PebbleConnector.GetInstance(); await _pc.StartBackgroundTask(PebbleConnector.Initiator.Synchronize); } catch (Exception exp) { Log.Add("An exception occurred while synchronizing."); Log.Add(exp.Message); } }
/// <summary> /// Connect to Pebble Time and start a new background communication task /// </summary> private async void Connect(object obj) { try { Connector.PebbleConnector _pc = Connector.PebbleConnector.GetInstance(); Log.Add("Connecting..."); await _pc.StartBackgroundTask(PebbleConnector.Initiator.Manual); } catch (Exception exp) { _vmBinder.Log.Add("An exception occurred while connecting."); _vmBinder.Log.Add(exp.Message); } }