コード例 #1
0
ファイル: NewPassword.cs プロジェクト: muh-awais/Lab-Project
 private void button2_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "" || textBox2.Text == "")
     {
         MessageBox.Show("Please fill the form completely");
     }
     if (textBox1.Text != "")
     {
         if (textBox2.Text != textBox1.Text)
         {
             MessageBox.Show("Your Confirmation Password is not same");
         }
     }
     if (textBox1.Text != "" && textBox2.Text != "" && textBox2.Text == textBox1.Text)
     {
         StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1();
         StudentsAffairsSystem.NewTeachersPassword(textBox2.Text);
         StudentsAffairsSystem.NewStudentsPassword(textBox2.Text);
     }
 }