Support UI selection via --wpf command-line argument
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.
This commit is contained in:
parent
67f207c05b
commit
d068b4b3e1
2 changed files with 27 additions and 26 deletions
|
|
@ -1,7 +1,12 @@
|
|||
{
|
||||
"profiles": {
|
||||
"Profile 1": {
|
||||
"commandName": "Project"
|
||||
"ImageCatalog (WinForms)": {
|
||||
"commandName": "Project",
|
||||
"commandLineArgs": ""
|
||||
},
|
||||
"ImageCatalog (WPF)": {
|
||||
"commandName": "Project",
|
||||
"commandLineArgs": "--wpf"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue