private void CheckLogin(bool ignoreServerState = false) { if (!ignoreServerState && Application.SignalRClient.IsDisconnected) { return; } if (!AuthenticationManager.IsLoggedIn) { UiHelper.ShowForm <CtrlNumericKeyboard>(UiHelper.CreateTitle("Login"), this) .Configure(control => control.KeyboardLayout = NumericKeyboardLayout.Pin) .OnConfirm(PerformLogin) .SetTitleBar(true, true) .ApplyTheme(_theme) .Show(); } }