I would like to run a C # / WPF / MVVM application with an instance of my main view model after checking the local file for the database connection settings.
As soon as I have the connection settings, I will bind them to the class and include them in my main view model.
I think I would check the local file and instantiate the Main View Model and Main Window in App.xaml.cs
Any thoughts? Is there a better way to do this?
source share