private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1(); BindingSource Source = new BindingSource(); Source.DataSource = StudentsAffairsSystem.SearchDeptstudent(comboBox1.Text); dataGridView1.DataSource = Source; }
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1(); BindingSource Source = new BindingSource(); Source.DataSource = StudentsAffairsSystem.ShowTeachersDeptStudents(); dataGridView1.DataSource = Source; }
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1(); BindingSource Source = new BindingSource(); Source.DataSource = StudentsAffairsSystem.SearchDeptstudent(comboBox1.Text); dataGridView1.DataSource = Source; }
private void button2_Click(object sender, EventArgs e) { StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1(); BindingSource Source = new BindingSource(); Source.DataSource = StudentsAffairsSystem.ShowStudentDeptTeachers(); dataGridView1.DataSource = Source; }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1(); StudentsAffairsSystem.ResetTeachersPasswordList(textBox3.Text); StudentsAffairsSystem.ResetStudentsPasswordList(textBox3.Text); ResetPassword obj = new ResetPassword(); obj.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1(); List <StudentsAffairsSystemServer.InformationTeacher> obj1 = new List <StudentsAffairsSystemServer.InformationTeacher>(); obj1 = StudentsAffairsSystem.SpecificTeachersProfile().ToList(); foreach (StudentsAffairsSystemServer.InformationTeacher obj in obj1) { textBox1.Text = obj.UserName; textBox3.Text = obj.ContactNumber; textBox2.Text = obj.EmailId; textBox4.Text = obj.Department; } }
private void button1_Click_1(object sender, EventArgs e) { StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1(); List <StudentsAffairsSystemServer.InformationStudent> obj1 = new List <StudentsAffairsSystemServer.InformationStudent>(); obj1 = StudentsAffairsSystem.SpecificStudentsProfile().ToList(); foreach (StudentsAffairsSystemServer.InformationStudent obj in obj1) { textBox1.Text = obj.UserName; textBox3.Text = obj.ContactNumber; textBox7.Text = obj.Department; textBox2.Text = obj.EmailId; textBox4.Text = obj.RegisterationNumber; textBox6.Text = obj.Section; textBox5.Text = obj.StudentCategory; } }
private void button2_Click(object sender, EventArgs e) { if (textBox2.Text == "" || textBox3.Text == "" || textBox4.Text == "" || textBox5.Text == "" || textBox6.Text == "" || textBox7.Text == "" || comboBox1.Text == "" || comboBox3.Text == "" || comboBox2.Text == "" || comboBox4.Text == "" || textBox8.Text == "") { MessageBox.Show("Incomplete Information is Provided!"); } else if (textBox4.Text != textBox3.Text) { MessageBox.Show("Your Confirmation Password is Incorrect"); textBox4.Text = null; } else { StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1(); StudentsAffairsSystem.StudentInfo(textBox2.Text, textBox5.Text, textBox6.Text, comboBox3.Text, comboBox4.Text, textBox7.Text, comboBox1.Text); StudentsAffairsSystem.StudentRegister(textBox2.Text, textBox3.Text, textBox5.Text, textBox6.Text, comboBox4.Text, textBox7.Text, comboBox1.Text, comboBox3.Text, comboBox2.Text, textBox8.Text); MessageBox.Show("U have been Registered!"); textBox2.Text = null; textBox3.Text = null; textBox5.Text = null; textBox6.Text = null; textBox7.Text = null; comboBox1.Text = null; comboBox3.Text = null; comboBox4.Text = null; comboBox2.Text = null; textBox8.Text = null; textBox4.Text = null; } }
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); } }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1(); bool testpass; bool isvalidpass; bool testpass1; bool isvalidpass1; StudentsAffairsSystem.ChkTeachersSecretQuest(comboBox1.Text, textBox1.Text, out testpass, out isvalidpass); StudentsAffairsSystem.ChkStudentsSecretQuest(comboBox1.Text, textBox1.Text, out testpass1, out isvalidpass1); if (testpass || testpass1) { NewPassword obj = new NewPassword(); obj.Show(); this.Hide(); } else { MessageBox.Show("Your Secret Anwers are not correct"); } }
private void button2_Click(object sender, EventArgs e) { StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1(); //StudentsAffairsSystem.addimages(pictureBox1.Image); pictureBox1.Image = Student_Affaris_System.Properties.Resources.Un_known; }
private void button2_Click(object sender, EventArgs e) { StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1(); StudentsAffairsSystem.AddApproveStudentstoList(textBox1.Text); textBox1.Text = null; }
private void button1_Click(object sender, EventArgs e) { StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1(); textBox1.Text = StudentsAffairsSystem.viewannoucements(); }
private void button1_Click(object sender, EventArgs e) { StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1(); int userisvalid; bool isvalidpassed; int userisvalid1; bool isvalidpassed1; StudentsAffairsSystem.isvalidstudent(textBox3.Text, textBox2.Text, out userisvalid, out isvalidpassed); StudentsAffairsSystem.isvalidteacher(textBox3.Text, textBox2.Text, out userisvalid1, out isvalidpassed1); bool TeacherApproved; bool isvalidTeacher; StudentsAffairsSystem.CheckApproveTeachers(textBox3.Text, out TeacherApproved, out isvalidTeacher); bool StudentApproved; bool isvalidStudent; StudentsAffairsSystem.CheckApproveStudents(textBox3.Text, out StudentApproved, out isvalidStudent); if (userisvalid == 2 || userisvalid == 3) { if (StudentApproved) { if (userisvalid == 2) { StudentsAffairsSystem.AddStudentDeptTeacherstoList(textBox3.Text); StudentsAffairsSystem.AddStudentstoProfileList(textBox3.Text); MessageBox.Show("valid user"); CRPageAfterLogin obj = new CRPageAfterLogin(); obj.Show(); this.Hide(); } if (userisvalid == 3) { StudentsAffairsSystem.AddStudentstoProfileList(textBox3.Text); MessageBox.Show("valid user"); StudentPageAfterLogin obj = new StudentPageAfterLogin(); obj.Show(); this.Hide(); } } else { MessageBox.Show("Your Registeration Request are not approved by Admin"); textBox3.Text = null; textBox2.Text = null; } } if (userisvalid1 == 1) { if (TeacherApproved) { StudentsAffairsSystem.AddTeacherstoProfileList(textBox3.Text); StudentsAffairsSystem.AddTeachersDeptStudentstoList(textBox3.Text); MessageBox.Show("valid user"); TeacherPageAfterLogin obj = new TeacherPageAfterLogin(); obj.Show(); this.Hide(); } else { MessageBox.Show("Your Registeration Request are not approved by Admin"); textBox3.Text = null; textBox2.Text = null; } } if (userisvalid != 2 && userisvalid != 3 && userisvalid1 != 1) { MessageBox.Show("Invalid User!"); textBox3.Text = null; textBox2.Text = null; } }