Esempio n. 1
0
        /// <summary>
        /// Ouvre une nouvelle FrmInformation avec l'id donnée
        /// </summary>
        /// <param name="idQCM">Id du QCM</param>
        public static void OpenFormContents(int idQCM)
        {
            if (DictQCMOpened == null)
            {
                DictQCMOpened = new Dictionary <int, FrmInformations>();
            }

            if (!DictQCMOpened.ContainsKey(idQCM))
            {
                FrmInformations frmInformations = new FrmInformations(idQCM);
                frmInformations.FormClosing += FrmInformations_FormClosing;
                frmInformations.Show();
                DictQCMOpened.Add(idQCM, frmInformations);
            }
            else
            {
                FrmInformations frmInformations;
                DictQCMOpened.TryGetValue(idQCM, out frmInformations);
                frmInformations.BringToFront();
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Ouvre une nouvelle FrmInformation
        /// </summary>
        public void OpenFormContents()
        {
            FrmInformations _frm = new FrmInformations(this);

            _frm.Show();
        }