/// <summary> /// Called when logout is clicked. /// </summary> private void LogOut() { LocalData.SaveSession(""); drawApp = false; drawLogin = true; drawAppSelectionView = false; }
private void Networking_SessionVerificationResult(object sender, EventArgs e) { Networking.SessionVerificationResult -= Networking_SessionVerificationResult; GenericResponse response = (GenericResponse)sender; if (response != GenericResponse.Success) { CloseApp(); LocalData.SaveSession(""); this.drawLogin = true; this.drawAppSelectionView = false; this.drawApp = false; Frame.SetBackgroundColor(36, 36, 36); } drawNetworkDisconnected = false; }