Example #1
0
        //load in either all the questions, or their own
        public HulpVragen(Form p, Administration a, bool all)
        {
            this.InitializeComponent();
            this.Administration = a;
            this.previous = p;
            this.allLoaded = all;
            this.questionOpened = false;

            //Check if the user is a 'hulpverlener', which in that case, they should not be allowed to do as much as usual.
            if (this.Administration.MainAccountData(6) == "Hulpverlener")
            {
                btnNieuw.Enabled = false;
            }

            //load in questions
            lbHulpvragen.DataSource = Administration.GetQuestionNames(allLoaded);
        }