Пример #1
0
 private void ButtonSeeAllStudent_Click(object sender, EventArgs e)
 {
     if (connected)
     {
         Form AdminLog = new AdminLog(cs, "main");
         AdminLog.Show();
     }
 }
Пример #2
0
        private void ButtonRemoveAll_Click(object sender, EventArgs e)
        {
            Form al = new AdminLog(cs, "student");

            al.ShowDialog();

            if (AdminLog.granted == "YES")
            {
                MessageBox.Show("Fair is foul, and foul is fair.");
                for (int i = 0; i < listView.Items.Count; i++)
                {
                    cs.DeleteInfo("DELETE StudentTable WHERE StudentID = " + listView.Items[i].Text);
                }

                LoadList();
            }
        }