示例#1
0
        private void button2_Click(object sender, EventArgs e)
        {
            StaffLogin st = new StaffLogin();

            st.Show();
            this.Hide();
        }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     StaffLogin s = new StaffLogin();
     using (DataClasses1DataContext DB = new DataClasses1DataContext()) {
         var result = from c in DB.STAFFs  where c.Id==this.textBox1.Text
                      select new { c.Id, c.Password ,c.Name_, c.Position, c.Salary,c.Address };
         ////DataGridview1.DataSource = result;
         dataGridView1.DataSource = result;
     }
 }
示例#3
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (comboBox1.Text.Equals("Admin"))
            {
                AdminLogin ad = new AdminLogin();
                ad.Show();
                this.Hide();
            }


            else if (comboBox1.Text.Equals("Teacher"))
            {
                TeacherLogin ad = new TeacherLogin();
                ad.Show();
                this.Hide();
            }

            else if (comboBox1.Text.Equals("Students"))
            {
                StudentLogin ad = new StudentLogin();
                ad.Show();
                this.Hide();
            }
            else if (comboBox1.Text.Equals("Parents"))
            {
                ParentsLogin ad = new ParentsLogin();
                ad.Show();
                this.Hide();
            }
            else if (comboBox1.Text.Equals("Staff"))
            {
                StaffLogin ad = new StaffLogin();
                ad.Show();
                this.Hide();
            }
        }
示例#4
0
 private void button3_Click(object sender, EventArgs e)
 {
     StaffLogin lsl = new StaffLogin();
     lsl.Show();
     this.Hide();
 }