public frmLogin()
 {
     InitializeComponent();
     StartPosition          = FormStartPosition.CenterScreen;
     accountDataAccess      = new AccountDataAccess();
     loginHistoryDataAccess = new LoginHistoryDataAccess();
 }
        public frmTeachersStartup()
        {
            login = new LoginHistoryDataAccess();
            InitializeComponent();
            StartPosition = FormStartPosition.CenterScreen;

            dataGridView1.DataSource = login.GetTeacherNotice();
        }
예제 #3
0
        public frmTeacherProfile()
        {
            login = new LoginHistoryDataAccess();
            InitializeComponent();

            userId = login.getLastLogin();

            dataGridView1.DataSource = login.GetTeacherInfoById(userId);
            StartPosition            = FormStartPosition.CenterScreen;
        }
        public studentProfile()
        {
            login = new LoginHistoryDataAccess();

            userId = login.getLastLogin();
            MessageBox.Show(userId + " buccho");
            InitializeComponent();
            StartPosition     = FormStartPosition.CenterScreen;
            studentDataAccess = new StudentDataAccess();
            admindataAccess   = new AdminDataAccess();
            teacherDataAccess = new TeacherDataAccess();
            initialMethod();
        }
예제 #5
0
 public frmGrades()
 {
     login = new LoginHistoryDataAccess();
     InitializeComponent();
     StartPosition       = FormStartPosition.CenterScreen;
     courseDataAcces     = new CourseDataAccess();
     getGrades           = new List <string>();
     userId              = login.getLastLogin();
     getGrades           = courseDataAcces.getGrades(userId);
     textBoxBangla.Text  = getGrades[1];
     textBoxEnglish.Text = getGrades[2];
     textBoxMath.Text    = getGrades[3];
 }
예제 #6
0
        public frmAdminStartup()
        {
            login       = new LoginHistoryDataAccess();
            currentUser = login.getLastLogin();
            InitializeComponent();

            StartPosition = FormStartPosition.CenterScreen;
            comboBox1.Items.Add("Teacher");
            comboBox1.Items.Add("Student");

            studentDataAccess = new StudentDataAccess();
            admindataAccess   = new AdminDataAccess();
            teacherDataAccess = new TeacherDataAccess();
        }
예제 #7
0
        public frmCourseTechInfo()
        {
            InitializeComponent();
            tc = new List <string>();

            courseDataAcces = new CourseDataAccess();
            login           = new LoginHistoryDataAccess();

            tc = courseDataAcces.getTeacherBySub("Bangla");
            textBoxBNG.Text       = tc[0];
            textBoxBNGTechEm.Text = tc[1];

            tc = courseDataAcces.getTeacherBySub("English");
            textBoxENG.Text       = tc[0];
            textBoxENGTechEm.Text = tc[1];

            tc = courseDataAcces.getTeacherBySub("Math");
            textBoxMATH.Text       = tc[0];
            textBoxMATHTechEm.Text = tc[1];
        }