public void loginCheck(UserLogin userObj, LoginFormUI ob)
        {
            LoginDataAccess dataAccess = new LoginDataAccess();

            int i = dataAccess.haveAnyUserId(userObj);

            if (i == 1)
            {
                HomePageUI obj = new HomePageUI();
                obj.Show();
                ob.Hide();
            }
            else
            {
                MessageBox.Show("Invalid Username and password!!!\n please try again.");
                //userLoginNameTextBox.Clear();
                //userLoginPasswordTextBox.Clear();
            }
        }
示例#2
0
    void Introduct()
    {
        com = UIManager.Instance.GetUI <CommonUI>("CommonUI");
        //com.SetComUITitle("第一阶段 以物换物");
        com.SetComUITitle("首页");
        //Canvas canvas = UIManager.Instance.GetComponent<Canvas>();
        //com.transform.SetParent(canvas.transform);

        if (SwapModel.GetInstance().hpUI == null)
        {
            HomePageUI homePageUI        = UIManager.Instance.GetUI <HomePageUI>("HomePageUI");
            SwapModel.GetInstance().hpUI = homePageUI;
            homePageUI.transform.SetParent(UIManager.Instance.transform, false);
            Button startButton = homePageUI.transform.Find("Button").GetComponent <Button>();//开始按钮
            startButton.onClick.AddListener(StartPro);
            startButton.gameObject.GetUIFlash().StartFlash();

            SwapModel.GetInstance().CurReinforcement = null;
        }
        else
        {
            StartPro();
        }
    }