public App() { ViewModelLocator.Initialize(); IocSetup.Initialize(); InitializeComponent(); Suspending += OnSuspending; }
public static void Initialize() { if (_isInitialized) { return; } IocSetup.Initialize(); ViewModelLocator.Initialize(); _isInitialized = true; }