public class App : Application
App | Initialise une nouvelle instance de la classe App. |
Dispatcher | Gets the Dispatcher this DispatcherObject is associated with. (Hérité de DispatcherObject) |
MainWindow | Gets or sets the main window of the application. (Hérité de Application) |
Properties | Gets a collection of application-scope properties. (Hérité de Application) |
Resources | Gets or sets a collection of application-scope resources, such as styles and brushes. (Hérité de Application) |
ShutdownMode | Gets or sets the condition that causes the Shutdown method to be called. (Hérité de Application) |
StartupUri | Gets or sets a UI that is automatically shown when an application starts. (Hérité de Application) |
Windows | Gets the instantiated windows in an application. (Hérité de Application) |
Equals | Determines whether the specified object is equal to the current object. (Hérité de Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Hérité de Object) |
FindResource | Searches for a user interface (UI) resource, such as a Style or Brush, with the specified key, and throws an exception if the requested resource is not found (see XAML Resources). (Hérité de Application) |
GetHashCode | Serves as the default hash function. (Hérité de Object) |
GetType | Gets the Type of the current instance. (Hérité de Object) |
Main | Application Entry Point. |
MemberwiseClone | Creates a shallow copy of the current Object. (Hérité de Object) |
OnActivated | Raises the Activated event. (Hérité de Application) |
OnDeactivated | Raises the Deactivated event. (Hérité de Application) |
OnExit | Raises the Exit event. (Hérité de Application) |
OnFragmentNavigation | Raises the FragmentNavigation event. (Hérité de Application) |
OnLoadCompleted | Raises the LoadCompleted event. (Hérité de Application) |
OnNavigated | Raises the Navigated event. (Hérité de Application) |
OnNavigating | Raises the Navigating event. (Hérité de Application) |
OnNavigationFailed | Raises the NavigationFailed event. (Hérité de Application) |
OnNavigationProgress | Raises the NavigationProgress event. (Hérité de Application) |
OnNavigationStopped | Raises the NavigationStopped event. (Hérité de Application) |
OnSessionEnding | Raises the SessionEnding event. (Hérité de Application) |
OnStartup |
Méthode appelée au démarrage de l'application
Avant d'afficher la fenêtre principale
on vérifie que l'application peut se connecter à la base de données
Si la connexion échoue, on affiche un message d'erreur et on ferme l'application
Ensuite on affiche la fenêtre de connexion
Si l'utilisateur se connecte avec succès, on affiche la fenêtre principale
(Overrides ApplicationOnStartup(StartupEventArgs)) |
Run | Starts a Windows Presentation Foundation application. (Hérité de Application) |
Run(Window) | Starts a Windows Presentation Foundation application and opens the specified window. (Hérité de Application) |
Shutdown | Shuts down an application. (Hérité de Application) |
Shutdown(Int32) | Shuts down an application that returns the specified exit code to the operating system. (Hérité de Application) |
ToString | Returns a string that represents the current object. (Hérité de Object) |
TryFindResource | Searches for the specified resource. (Hérité de Application) |
Activated | Occurs when an application becomes the foreground application. (Hérité de Application) |
Deactivated | Occurs when an application stops being the foreground application. (Hérité de Application) |
DispatcherUnhandledException | Occurs when an exception is thrown by an application but not handled. (Hérité de Application) |
Exit | Occurs just before an application shuts down and cannot be canceled. (Hérité de Application) |
FragmentNavigation | Occurs when a navigator in the application begins navigation to a content fragment, Navigation occurs immediately if the desired fragment is in the current content, or after the source XAML content has been loaded if the desired fragment is in different content. (Hérité de Application) |
LoadCompleted | Occurs when content that was navigated to by a navigator in the application has been loaded, parsed, and has begun rendering. (Hérité de Application) |
Navigated | Occurs when the content that is being navigated to by a navigator in the application has been found, although it may not have completed loading. (Hérité de Application) |
Navigating | Occurs when a new navigation is requested by a navigator in the application. (Hérité de Application) |
NavigationFailed | Occurs when an error occurs while a navigator in the application is navigating to the requested content. (Hérité de Application) |
NavigationProgress | Occurs periodically during a download that is being managed by a navigator in the application to provide navigation progress information. (Hérité de Application) |
NavigationStopped | Occurs when the StopLoading method of a navigator in the application is called, or when a new navigation is requested by a navigator while a current navigation is in progress. (Hérité de Application) |
SessionEnding | Occurs when the user ends the Windows session by logging off or shutting down the operating system. (Hérité de Application) |
Startup | Occurs when the Run method of the Application object is called. (Hérité de Application) |