Пример #1
0
 /// <summary>
 /// Shows profile edit form. Populates form with academician info
 /// </summary>
 /// <param name="id"></param>
 public void ShowProfileEditForm(Academician ac)
 {
     ShowLoading();
     addForm = new ProfileEditForm(ac);
     ActivateChildForm(addForm, false);
     FadeOutLoading();
 }
Пример #2
0
        //private void delay_Tick(object sender, EventArgs e) {
        //    StartFadeOut();
        //    delay.Stop();
        //}

        private void addAcademcian_Click(object sender, EventArgs e)
        {
            ShowLoading();
            addForm = new ProfileEditForm();
            ActivateChildForm(addForm, false); //other forms wont be disposed
            FadeOutLoading();
        }
Пример #3
0
        /// <summary>
        /// This function will be called from LoginForm after admin
        /// succesfully logged in.
        /// </summary>
        public void HideLoginButton()
        {
            ShowLoading();
            isAdminLoggedIn   = true;
            menuLogin.Visible = false;
            menuLogin.Enabled = false;
            menuLogin.Dispose();
            addAcademcian.Visible = true;
            addForm = new ProfileEditForm();

            ActivateChildForm(addForm, false);

            FadeOutLoading();
        }