public void Stop() { LoginMonitor.Quit(); server.CloseAsync(); server.Dispose(); }
private void Logout() { LoginMonitor.Logout(); LoginMonitor.User = new User(); Disconnect(); RequestSwitch(new SwitchViewEventArgs("Login")); }
public void Start() { var qqUserName = ConfigurationManager.AppSettings["QQUserName"]; var qqPassword = ConfigurationManager.AppSettings["QQPassword"]; LoginMonitor.QQ(qqUserName, qqPassword); server.OpenAsync(); }
private void Login() { try { bool loginSuccessful = LoginMonitor.Login(); if (loginSuccessful) { ErrorMessage = string.Empty; RequestSwitch(new SwitchViewEventArgs("App")); } else { ErrorMessage = "Login incorrect"; } } catch (EntityException e) { ErrorMessage = e.InnerException.Message; } }