Пример #1
0
        private void Save()
        {
            UserKv.Password     = UCrypto.Encrypt(txtPassword.Text);
            UserKv.PasswordHint = txtPasswordHint.Text;

            DataSet ds = SocketClient.AddUser(UserKv);

            if (ds != null && ds.Tables.Count > 0)
            {
                Kv kv = new Kv(ds.Tables[0]);
                Srv.SetCurrentUser(kv);
                SocketClient.LoginUser(Ap.CurrentUserID, UserStatusE.Blank);
                this.Visible = false;
                ApWin.StartupForm.Visible = false;
                OnlineClient frm = new OnlineClient();
                frm.Show();
            }
            this.Close();
        }