private async void stop_Click(object sender, RoutedEventArgs e) { stopButton.IsEnabled = false; initialize.IsEnabled = true; await acc.DisableNotifications(); await acc.DisableSensor(); info.Text = "Press Start"; }
private async void btnDisableNotifications_Click(object sender, RoutedEventArgs e) { await acc.DisableNotifications(); await gyro.DisableNotifications(); await hum.DisableNotifications(); await ks.DisableNotifications(); await mg.DisableNotifications(); await ps.DisableNotifications(); await tempSen.DisableNotifications(); }