示例#1
0
文件: reg.cs 项目: amir9979/sadna
        private void button2_Click(object sender, EventArgs e)
        {
            myConnection.entry(this.forum.Text);
            string Temp    = textBox1.Text;
            Int64  IntTemp = Convert.ToInt64(Temp);

            if (myConnection.EmailConfirm(IntTemp, this.userName.Text))
            {
                MessageBox.Show("ברכותי הינך חבר רשום ומאושר");
                panel1.Visible = false;
            }
            else
            {
                MessageBox.Show("הקוד שגוי אנא נסה בשנית");
            }
        }
示例#2
0
文件: test.cs 项目: amir9979/sadna
 public void TestEmailConfirm() //need to return true only to values
 {
     Assert.IsTrue(forum.EmailConfirm(1, ""));
     Assert.IsFalse(forum.EmailConfirm(2, ""));
 }