Пример #1
0
 void getResultTimer_Tick(object sender, EventArgs e)
 {
     if (issubmit)
     {
         return;
     }
     if (LoginPage.threadisrun.Equals("否"))
     {
         if (LoginPage.islogin.Equals("未登陆"))
         {
             issubmit = true;
             MessageBox.Show("╭(╯^╰)╮  3#用户名密码不正确,难道是没注册么");
             this.loginP.Visibility = Visibility.Hidden;
         }
         else if (LoginPage.islogin.Equals("已登陆"))
         {
             issubmit = true;
             this.loginGif.Visibility = Visibility.Hidden;
             App.data = new AppData();
             UserWindow window = new UserWindow();
             App.mainWindow = window;
             App.data.InitLoginData(LoginPage.loginInitiData as LoginReturn);
             App.mainWindow = window;
             //这是什么道理= =,反正是好使了
             window.Show();
             App.Current.MainWindow.Close();
         }
     }
 }
Пример #2
0
        public static void TestLogin()
        {
            App.data = new AppData();
            var        data   = App.data;
            UserWindow window = new UserWindow();

            App.mainWindow = window;
            window.Show();
        }