Ejemplo n.º 1
0
        /// <summary>
        /// Must check IsExitAllowed PRIOR to calling this routine.
        /// </summary>
        /// <param name="sFormKey"></param>
        private void DisplayNewForm(frbHSDChild newForm)
        {
            if (newForm == _currForm)
            {
                return;
            }

            _currForm.ExitRoutines();
            newForm.ShowAndRunEntryRoutines();
            _currForm.Hide();                   //having this *after* newForm.Show() reduces ugly flicker.  still don't look great.  :(
            _currForm = newForm;
        }
Ejemplo n.º 2
0
        private void frmMaster_Load(object sender, System.EventArgs e)
        {
            CheckAndWarnScreenSettings();
            HSDMain.fSplash.CloseSplash();

            if (IsNoKidsAndNoSubjects())
            {
                DisplayFirstTimeWizard();
                StaticMethods.RefreshCodeTable("uc_subjects_active_with_all_subjects");
                StaticMethods.RefreshCodeTable("uc_subjects_active");
                StaticMethods.RefreshCodeTable("uc_subjects_all");
                StaticMethods.RefreshCodeTable("uc_kids_active_with_all_kids");
                StaticMethods.RefreshCodeTable("uc_kids_active");
                StaticMethods.RefreshCodeTable("uc_kids_all");
            }

            _currForm.ShowAndRunEntryRoutines();
        }