private void SignUpBTN_Click_1(object sender, EventArgs e) { foreach (Control ctl in MainPanel.Controls) { if (ctl is TextBox) { int find = ctl.Name.ToString().IndexOf("_Rec", 0); if (find > 0 && ctl.Text == "") { ctl.BackColor = Color.Red; ctl.ForeColor = Color.White; } else { ctl.BackColor = Color.White; ctl.ForeColor = Color.Black; } while (find > 0 && ctl.Text == "") { found = 1; } } } if (found == 0 && CheckMail.checkForMail(EMTBX_Rec.Text) && passCorrect == true && passMatch == true && passLength == true) { ToHash(PassTBX1_Rec.Text); newUser user = new newUser(FNameTBX_Rec.Text, LNameTBX_Rec.Text, EMTBX_Rec.Text, hashedPass); if (IconSelected == true) //"Say to class that the user selected a profile image" { //user.SendIcon(ofd.FileName); user.GetIpAndId(); //Get IP and ID user.Pair(); //Pair the IP and the ID together user.FinalSend(true, ofd.FileName); //user.SendProps();//Send everything to server } else { user.GetIpAndId(); //Get IP and ID user.Pair(); //Pair the IP and the ID together user.FinalSend(false, ""); } //user.GetIpAndId();//Get IP and ID //user.Pair();//Pair the IP and the ID together //user.SendProps();//Send everything to server } }
private void VaildMail() { if (CheckMail.checkForMail(EMTBX_Rec.Text.ToString())) { VaildEMail = true; } else { VaildEMail = false; } }