1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Application app = System.Windows.Application.Current;
if (app != null)
app.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background,
(Action)delegate {
CDailyReport DailyReport = new CDailyReport(m_strUser, m_strPass);
if (DailyReport.Login() == true)
{
SaisieRapport FormSaisieRapport = new SaisieRapport();
FormSaisieRapport.ShowDialog();
}
else
{
MessageBox.Show("Echec d'authentification : utilisateur inconnu.", "Erreur d'authentification", MessageBoxButton.OK, MessageBoxImage.Hand);
}
}); |
Partager