Beispiel #1
0
 public frmTeacherNoticeUp()
 {
     teacherDataAccess = new TeacherDataAccess();
     notice            = new NoticeDataAccess();
     InitializeComponent();
     textBox1.Text    = "Student";
     textBox1.Enabled = false;
 }
 public frmAdminUpNotice()
 {
     InitializeComponent();
     comboBox1.Items.Add("Teacher");
     comboBox1.Items.Add("Student");
     comboBox1.Items.Add("Both");
     StartPosition            = FormStartPosition.CenterScreen;
     studentDataAccess        = new StudentDataAccess();
     adminDataAccess          = new AdminDataAccess();
     teacherDataAccess        = new TeacherDataAccess();
     noticeDataAccess         = new NoticeDataAccess();
     dataGridView1.DataSource = adminDataAccess.getNoticeList();
 }