예제 #1
0
        public RegisterForm()
        {
            InitializeComponent();

            DynamicUIControlsHandler.FillEducationLevels(educationLevelCB);
            DynamicUIControlsHandler.FillRoles(roleCB);
        }
예제 #2
0
        //Opens LemmaOfTheDayUserControl in mainPanel when application starts
        public StartPage()
        {
            ControlsBeforeLogin = new List <Control>();
            FilterList          = new List <string>();
            InitializeComponent();
            if (!mainPanel.Controls.Contains(Encyclopedia.View.FeaturedLemmaUserControl.Instance))
            {
                mainPanel.Controls.Add(Encyclopedia.View.FeaturedLemmaUserControl.Instance);
                Encyclopedia.View.FeaturedLemmaUserControl.Instance.Dock = DockStyle.Fill;
                Encyclopedia.View.FeaturedLemmaUserControl.Instance.BringToFront();
            }
            else
            {
                Encyclopedia.View.FeaturedLemmaUserControl.Instance.BringToFront();
            }
            mainPanel.Controls.Add(Encyclopedia.View.LemmaViewUserControl.Instance);

            //copy all the controls of private left panel to newLeftPanel
            NewLeftPanel = leftPanel;
            //remove the private left panel
            this.Controls.Remove(leftPanel);
            //add the newLeftPanel
            this.Controls.Add(NewLeftPanel);

            DynamicUIControlsHandler.FillCategories(filterCheckedListBox);
        }
예제 #3
0
        public ProfileForm(Account account, UI.StartPage st)
        {
            InitializeComponent();

            DynamicUIControlsHandler.FillEducationLevels(educationLevelCB);
            DynamicUIControlsHandler.FillRoles(roleCB);

            this.Account = account;
            this.st      = st;
            SetAccountData();
            UpdatedSuccessfully = false;
        }