Пример #1
0
        public DashBoardPage(string matric, Server server)
        {
            InitializeComponent();
            this.server         = server;
            this.matric         = matric;
            studentEventManager = new StudentEventManager(server);

            this.nameLabel.Text   = studentEventManager.GetName(matric);
            this.matricLabel.Text = matric;

            dateManager = new DateTimeManager();
            DateTime today = DateTime.Today;

            this.dateLabel.Text            = today.ToString("d") + " |";
            this.weekLabel.Text            = dateManager.CurrentAcademicWeek();
            this.academicYearSemLabel.Text = dateManager.CurrentAcademicYear();

            studentEventManager.GetStudentEventsTasks(this.myEventListView, this.myTaskListView, matric);
            studentEventManager.GetEvents(this.eventListView);
        }