Пример #1
0
        public void Stop()
        {
            LoginMonitor.Quit();

            server.CloseAsync();
            server.Dispose();
        }
Пример #2
0
 private void Logout()
 {
     LoginMonitor.Logout();
     LoginMonitor.User = new User();
     Disconnect();
     RequestSwitch(new SwitchViewEventArgs("Login"));
 }
Пример #3
0
        public void Start()
        {
            var qqUserName = ConfigurationManager.AppSettings["QQUserName"];
            var qqPassword = ConfigurationManager.AppSettings["QQPassword"];

            LoginMonitor.QQ(qqUserName, qqPassword);

            server.OpenAsync();
        }
Пример #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;
     }
 }