Refactored Program.cs to accept command-line arguments and select between WinForms (default) and WPF UI based on the presence of --wpf. Removed old commented-out UI selection code. Updated launchSettings.json to provide separate profiles for WinForms and WPF launches. If WPF is requested but unavailable, the app falls back to WinForms.
12 lines
223 B
JSON
12 lines
223 B
JSON
{
|
|
"profiles": {
|
|
"ImageCatalog (WinForms)": {
|
|
"commandName": "Project",
|
|
"commandLineArgs": ""
|
|
},
|
|
"ImageCatalog (WPF)": {
|
|
"commandName": "Project",
|
|
"commandLineArgs": "--wpf"
|
|
}
|
|
}
|
|
}
|