Example #1
0
        public static DialogResult Afficher(string strMess, EFormAlerteBoutons boutons, EFormAlerteType icone, int nSecondesMaxAffichage, Form owner)
        {
            CFormAlerte frm = new CFormAlerte(strMess, boutons, icone, nSecondesMaxAffichage);

            //frm.Owner = owner;
            return(frm.ShowDialog(owner));
        }
        public void ShowDialogMessageBox()
        {
            EFormAlerteBoutons boutons    = EFormAlerteBoutons.Ok;
            EFormAlerteType    typeAlerte = EFormAlerteType.Exclamation;

            switch (m_action.TypeBox)
            {
            case CActionMessageBox.TypeMessageBox.OK:
                boutons = EFormAlerteBoutons.Ok;
                break;

            case CActionMessageBox.TypeMessageBox.OuiNon:
                typeAlerte = EFormAlerteType.Question;
                boutons    = EFormAlerteBoutons.OuiNon;
                break;

            case CActionMessageBox.TypeMessageBox.OKAnnuler:
                boutons = EFormAlerteBoutons.OkAbandonner;
                break;
            }
            DialogResult dResult = DialogResult.OK;

            CTimosApp.Navigateur.Invoke((MethodInvoker) delegate
            {
                dResult = CFormAlerte.Afficher(m_action.MessageToDisplay, boutons, typeAlerte, m_action.SecondesMaxiAffichage, CTimosApp.Navigateur);
            });
            m_result.Data = C2iDialogResult.Get2iDialogResultFromDialogResult(dResult);
        }
Example #3
0
 private void Initialiser(List <IErreur> erreurs, EFormAlerteBoutons boutons, EFormAlerteType icone)
 {
     m_btns  = boutons;
     m_icone = icone;
     m_ctrlErreurs.Initialiser(erreurs);
     m_tt.SetToolTip(m_ctrlErreurs, m_ctrlErreurs.Erreurs.Count + I.T("Errors...|126"));
     m_bIsErrorBox = true;
     ActualForme();
 }
Example #4
0
 private void Initialiser(string strMess, EFormAlerteBoutons boutons, EFormAlerteType icone)
 {
     m_icone       = icone;
     m_bitmap      = null;
     m_btns        = boutons;
     Message       = strMess;
     m_bIsErrorBox = false;
     ActualForme();
 }
Example #5
0
        private void Initialiser(IErreur[] erreurs, EFormAlerteBoutons boutons, Bitmap icone)
        {
            List <IErreur> lst = new List <IErreur>();

            foreach (IErreur err in erreurs)
            {
                lst.Add(err);
            }
            Initialiser(lst, boutons, icone);
        }
Example #6
0
 private void Initialiser(string strMess, EFormAlerteBoutons boutons, Bitmap icone)
 {
     if (icone == null)
     {
         Initialiser(strMess, boutons, EFormAlerteType.Info);
     }
     else
     {
         m_bitmap      = icone;
         m_btns        = boutons;
         Message       = strMess;
         m_bIsErrorBox = false;
         ActualForme();
     }
 }
Example #7
0
 private void Initialiser(List <IErreur> erreurs, EFormAlerteBoutons boutons, Bitmap icone)
 {
     if (icone == null)
     {
         Initialiser(erreurs, boutons, EFormAlerteType.Info);
     }
     else
     {
         m_bitmap = icone;
         m_btns   = boutons;
         m_ctrlErreurs.Initialiser(erreurs);
         m_tt.SetToolTip(m_ctrlErreurs, m_ctrlErreurs.Erreurs.Count + I.T("Errors...|126"));
         m_bIsErrorBox = true;
         ActualForme();
     }
 }
Example #8
0
 public CFormAlerte(List <IErreur> erreurs, EFormAlerteBoutons boutons, Bitmap icone)
 {
     InitializeComponent();
     Initialiser(erreurs, boutons, icone);
 }
Example #9
0
 public CFormAlerte(IErreur[] erreurs, EFormAlerteBoutons boutons, EFormAlerteType icone)
 {
     InitializeComponent();
     Initialiser(erreurs, boutons, icone);
 }
Example #10
0
 public CFormAlerte(string strMess, EFormAlerteBoutons boutons, Bitmap icone)
 {
     InitializeComponent();
     Initialiser(strMess, boutons, icone);
 }
Example #11
0
 public CFormAlerte(string strMess, EFormAlerteBoutons boutons, EFormAlerteType icone, int nSecondesMaxiAffichage)
 {
     InitializeComponent();
     Initialiser(strMess, boutons, icone);
     m_nSecondesMaxiAffichage = nSecondesMaxiAffichage;
 }
Example #12
0
        public static DialogResult Afficher(List <IErreur> erreurs, EFormAlerteBoutons boutons, Bitmap icone)
        {
            CFormAlerte frm = new CFormAlerte(erreurs, boutons, icone);

            return(frm.ShowDialog());
        }
Example #13
0
        public static DialogResult Afficher(IErreur[] erreurs, EFormAlerteBoutons boutons, EFormAlerteType icone)
        {
            CFormAlerte frm = new CFormAlerte(erreurs, boutons, icone);

            return(frm.ShowDialog());
        }
Example #14
0
        public static DialogResult Afficher(string strMess, EFormAlerteBoutons boutons, Bitmap icone)
        {
            CFormAlerte frm = new CFormAlerte(strMess, boutons, icone);

            return(frm.ShowDialog());
        }
Example #15
0
 public static DialogResult Afficher(string strMess, EFormAlerteBoutons boutons, EFormAlerteType icone, int nSecondesMaxAffichage)
 {
     return(Afficher(strMess, boutons, icone, nSecondesMaxAffichage, null));
 }