public void HandleOk() { if( ! _inputControlManager.ValidateControls() ) return; Engine.UserName = _userNameTB.Text; Engine.Password = _passwordTB.Text; VmUser user = new VmUser(); user.UserName = _userNameTB.Text; user.Password = _passwordTB.Text; VmAccountData.Default.User = user; VmAccountData.Default.AccountOutputData.LogGeneralEvent("rem login try " + user); try { Cursor.Current = Cursors.WaitCursor; VmUtility.PrepareForModemInternetConnection(); VmRemoteMessage.RegisterDevice(); if( VmRemoteMessage.ValidateLogin() ) Engine.GetTransmitEngine().ShowFirstControl(); else // kludge (err) - language VmApplication.Default.ShowNotification("Login failed: Verify User Name and Password."); } catch( JwHttpConnectionError x) { x.GetHashCode(); Engine.GetConnectionErrorEngine().ShowFirstPanel(); } finally { Cursor.Current = Cursors.Default; } }
public void AssignUser(VmUser user) { VmAccountData.Default.User = user; }