Exemple #1
0
        private void _handlerTabGeral()
        {
            tabControlGeral.TabPages.Remove(tabNewStudent);
            tabControlGeral.TabPages.Remove(tabNewInstructor);
            tabControlGeral.TabPages.Remove(tabNewActivity);
            tabControlGeral.TabPages.Remove(tabNewClass);
            tabControlGeral.TabPages.Remove(tabListStudents);
            tabControlGeral.TabPages.Remove(tabListInstructors);
            tabControlGeral.TabPages.Remove(tabListClass);
            tabControlGeral.TabPages.Remove(tabListActivity);

            mnItemNewStudents.Visible     = true;
            mnItemNewInstructor.Visible   = true;
            mnItemNewActivity.Visible     = true;
            mnItemNewReports.Visible      = true;
            mnItemShowStudents.Visible    = true;
            mnItemListInstructors.Visible = true;
            mnItemShowReports.Visible     = true;
            mnItemListActivities.Visible  = true;

            mnItemNewStudents.Enabled     = true;
            mnItemNewInstructor.Enabled   = true;
            mnItemNewActivity.Enabled     = true;
            mnItemNewReports.Enabled      = true;
            mnItemShowStudents.Enabled    = true;
            mnItemListInstructors.Enabled = true;
            mnItemShowReports.Enabled     = true;
            mnItemListActivities.Enabled  = true;

            if (LoginDTO.getUser().AccessLevel < 6)
            {
                mnItemNewInstructor.Visible = false;
                mnItemNewActivity.Visible   = false;
            }
        }
Exemple #2
0
        public MainMenu()
        {
            InitializeComponent();
            mnPrincipal.Renderer = new CustomMenuRender();
            this.CenterToScreen();

            this.radioControl.Add("dig", -1);
            this.radioControl.Add("lei", -1);
            this.radioControl.Add("rec", -1);
            this.radioControl.Add("atv", -1);
            this.radioControl.Add("int", -1);

            _handlerTabGeral();
            dtpNasc.Value       = DateTime.Today;
            dtpExp.Value        = DateTime.Today;
            dtpRelCreated.Value = DateTime.Today;
            lblWUser.Text       = "Bem vindo, " + LoginDTO.getUser().Name + "!";
        }