private void hyperlinkLabelControl2_Click(object sender, EventArgs e)
        {
            DialogResult exit = XtraMessageBox.Show("Do you want logout account?", "Logout", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (exit == DialogResult.Yes)
            {
                this.Hide();
                Login_Account login = new Login_Account();
                login.Show();
            }
            else
            {
            }
        }
Beispiel #2
0
        private void M010101_ItemClick(object sender, ItemClickEventArgs e)
        {
            DialogResult exit = XtraMessageBox.Show("Do you want to close program?", "Close Program", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (exit == DialogResult.Yes)
            {
                this.Hide();
                Login_Account login = new Login_Account();
                login.Show();
            }
            else
            {
            }
        }
 public static bool Autheticate_User(Login_Account account)
 {
     return(true);
 }
Beispiel #4
0
        protected override void RenderDropdownList()
        {
            base.RenderDropdownList();

            _list.RemoveChildrenToPool();

            int cnt = _items.Length;

            try
            {
                for (int i = 0; i < cnt; i++)
                {
                    GObject item = _list.AddItemFromPool();
                    item.text = _items[i];

                    CBox_SelectNumber_item cBox_Account_ = item.asButton as CBox_SelectNumber_item;

                    PlayUserHistory user_History = Login_Account.GetUserUser_History(item.text);

                    if (user_History != null)
                    {
                        cBox_Account_.m_Text_Date.SetVar("date", Utility.Text.Format("{0}-{1}", user_History.DateTime.Month.ToString(), user_History.DateTime.Day.ToString())).FlushVars();

                        switch (user_History.LoginType)
                        {
                        case LoginType.QucikLogin:
                            //[b] 游客账号:[/b] {guest=9999x001}
                            cBox_Account_.m_Text_Number_Item.SetGTextByCode("Text_Number_Item_002");

                            cBox_Account_.m_Text_Number_Item.SetVar("guest", user_History.NickName).FlushVars();

                            //设置图标
                            cBox_Account_.m_Text_Icon.SetGTextByCode(user_History.LoginType.ToString());
                            break;

                        case LoginType.MobilePhone:
                            //[b] 手机号:[/b] {phone=13588737213}
                            cBox_Account_.m_Text_Number_Item.SetGTextByCode("Text_Number_Item_001");

                            cBox_Account_.m_Text_Number_Item.SetVar("phone", user_History.NickName).FlushVars();

                            cBox_Account_.m_Text_Icon.SetGTextByCode(user_History.LoginType.ToString());
                            break;

                        case LoginType.Apple:
                            break;

                        case LoginType.NS:
                            break;

                        case LoginType.Instagram:
                            break;

                        case LoginType.Twitter:
                            break;

                        case LoginType.Facebook:
                            break;

                        case LoginType.Others:
                            break;

                        default:
                            break;
                        }

                        user_History.selectedIndex = i;
                    }
                }
            }
            catch (System.Exception)
            {
            }
        }