コード例 #1
0
        private void metroButton2_Click(object sender, EventArgs e)
        {
            //C-ChatData reg = new C-ChatData();
            //reg.regInsert(regFullName.Text, regUserName.Text, regEmail.Text, regPass.Text);
            Register reg = new Register();

            reg.FName = regFullName.Text;
            reg.UName = regUserName.Text;
            reg.Email = regEmail.Text;
            reg.PWord = regPass.Text;

            bool regComplete = data.regInsert(reg);

            if (regComplete == true)
            {
                logTab.SelectTab(signIn);
                metroLabel8.Visible = true;
            }
            else
            {
                metroLabel9.Visible = true;
            }
        }