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); }
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(); }
private void Initialiser(string strMess, EFormAlerteBoutons boutons, EFormAlerteType icone) { m_icone = icone; m_bitmap = null; m_btns = boutons; Message = strMess; m_bIsErrorBox = false; ActualForme(); }
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); }
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(); } }
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(); } }
public CFormAlerte(List <IErreur> erreurs, EFormAlerteBoutons boutons, Bitmap icone) { InitializeComponent(); Initialiser(erreurs, boutons, icone); }
public CFormAlerte(IErreur[] erreurs, EFormAlerteBoutons boutons, EFormAlerteType icone) { InitializeComponent(); Initialiser(erreurs, boutons, icone); }
public CFormAlerte(string strMess, EFormAlerteBoutons boutons, Bitmap icone) { InitializeComponent(); Initialiser(strMess, boutons, icone); }
public CFormAlerte(string strMess, EFormAlerteBoutons boutons, EFormAlerteType icone, int nSecondesMaxiAffichage) { InitializeComponent(); Initialiser(strMess, boutons, icone); m_nSecondesMaxiAffichage = nSecondesMaxiAffichage; }
public static DialogResult Afficher(List <IErreur> erreurs, EFormAlerteBoutons boutons, Bitmap icone) { CFormAlerte frm = new CFormAlerte(erreurs, boutons, icone); return(frm.ShowDialog()); }
public static DialogResult Afficher(IErreur[] erreurs, EFormAlerteBoutons boutons, EFormAlerteType icone) { CFormAlerte frm = new CFormAlerte(erreurs, boutons, icone); return(frm.ShowDialog()); }
public static DialogResult Afficher(string strMess, EFormAlerteBoutons boutons, Bitmap icone) { CFormAlerte frm = new CFormAlerte(strMess, boutons, icone); return(frm.ShowDialog()); }
public static DialogResult Afficher(string strMess, EFormAlerteBoutons boutons, EFormAlerteType icone, int nSecondesMaxAffichage) { return(Afficher(strMess, boutons, icone, nSecondesMaxAffichage, null)); }