bool mLoggingOut; //Flag to know if user logout is accidental or voluntary
 public MainPage()
 {
     Windows.UI.ViewManagement.ApplicationView.TerminateAppOnFinalViewClose = true;
     this.APIClient = new ProductsAPIClientVM(this.Dispatcher, new ProductsAPIClient());
     this.APIClient.PropertyChanged += _OnAPIClientPropertyChanged;
     this.InitializeComponent();
 }
 bool mLoggingOut; //Flag to know if user logout is accidental or voluntary
 public MainPage()
 {
     Windows.UI.ViewManagement.ApplicationView.TerminateAppOnFinalViewClose = true;
     this.APIClient = new ProductsAPIClientVM(this.Dispatcher, new ProductsAPIClient());
     this.APIClient.PropertyChanged += _OnAPIClientPropertyChanged;
     this.InitializeComponent();
     this.NavigationCacheMode = NavigationCacheMode.Required;
     Windows.Phone.UI.Input.HardwareButtons.BackPressed += _OnBackPressed;
 }