Exemplo n.º 1
0
        public void Stop()
        {
            LoginMonitor.Quit();

            server.CloseAsync();
            server.Dispose();
        }
Exemplo n.º 2
0
 private void Logout()
 {
     LoginMonitor.Logout();
     LoginMonitor.User = new User();
     Disconnect();
     RequestSwitch(new SwitchViewEventArgs("Login"));
 }
Exemplo n.º 3
0
        public void Start()
        {
            var qqUserName = ConfigurationManager.AppSettings["QQUserName"];
            var qqPassword = ConfigurationManager.AppSettings["QQPassword"];

            LoginMonitor.QQ(qqUserName, qqPassword);

            server.OpenAsync();
        }
Exemplo n.º 4
0
 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;
     }
 }