Exemplo n.º 1
0
    private void OnRegisterClick(object[] param)
    {
        if (m_RegisterWindow != null)
        {
            if (string.IsNullOrEmpty(m_RegisterWindow.IFAccount.text))
            {
                TipsUtil.ShowWindowTips(LanguageUtil.GetStrById(1000101), LanguageUtil.GetStrById(1000110));
                return;
            }
            if (string.IsNullOrEmpty(m_RegisterWindow.IFPwd.text))
            {
                TipsUtil.ShowWindowTips(LanguageUtil.GetStrById(1000102), LanguageUtil.GetStrById(1000110));
                return;
            }
            if (string.IsNullOrEmpty(m_RegisterWindow.IFAgainPwd.text))
            {
                TipsUtil.ShowWindowTips(LanguageUtil.GetStrById(1000103), LanguageUtil.GetStrById(1000110));
                return;
            }
            if (!string.Equals(m_RegisterWindow.IFPwd.text, m_RegisterWindow.IFAgainPwd.text))
            {
                TipsUtil.ShowWindowTips(LanguageUtil.GetStrById(1000104), LanguageUtil.GetStrById(1000110));
                return;
            }
        }
        AccountRegisterRequestProto proto = new AccountRegisterRequestProto();

        proto.Account          = m_RegisterWindow.IFAccount.text;
        proto.Pwd              = m_RegisterWindow.IFPwd.text;
        proto.Channel          = "0";
        proto.DeviceIdentifier = DeviceUtil.DeviceIdentifier;
        proto.DeviceModel      = DeviceUtil.DeviceModel;
        NetWorkSocket.Instance.SendMsg(proto.ToArray());
    }
Exemplo n.º 2
0
 private void OnMenuIconClickCallBack(string openWindowName)
 {
     Debuger.Log("需要打开" + openWindowName + "界面");
     switch (openWindowName)
     {
     case Window.GameLevelDetail:
         return;
     }
     if (openWindowName == "Pan_Tips")
     {
         TipsUtil.ShowWindowTips("需要打开" + openWindowName + "界面");
     }
     else
     {
         WindowManager.Instance.OpenWindow(openWindowName);
     }
 }
Exemplo n.º 3
0
    private void LogOn(string userName, string pwd)
    {
        if (m_LogOnWindow != null)
        {
            if (string.IsNullOrEmpty(m_LogOnWindow.IFAccount.text))
            {
                TipsUtil.ShowWindowTips(LanguageUtil.GetStrById(1000101), LanguageUtil.GetStrById(1000109));
                return;
            }
            if (string.IsNullOrEmpty(m_LogOnWindow.IFPwd.text))
            {
                TipsUtil.ShowWindowTips(LanguageUtil.GetStrById(1000102), LanguageUtil.GetStrById(1000109));
                return;
            }
        }
        AccountLogOnRequestProto proto = new AccountLogOnRequestProto();

        proto.UserName         = userName;
        proto.Pwd              = pwd;
        proto.DeviceIdentifier = DeviceUtil.DeviceIdentifier;
        proto.DeviceModel      = DeviceUtil.DeviceModel;
        NetWorkSocket.Instance.SendMsg(proto.ToArray());
    }