public MainPage() { this.InitializeComponent(); CheckBridgeStatus(); App.Current.Suspending += Current_Suspending; App.Current.Resuming += Current_Resuming; }