88.01 Identical captions and titles issue fixing (Manuscript) (wpf) - chempkovsky/CS2WPF-and-CS2XAMARIN GitHub Wiki
- Navigate to Manuscript (lform)
- With "Table columns"-context menu
- Open "Table columns"-dialog and check "Country"-column for Author and "Country"-column for Dialect
- As a result we have two columns with Identical titles
- With "Update Item"-context menu
- Open Modify Item dialog. As a result we have two controls with Identical captions
To fix this Issue
- Right click
Literature\LitManuscript\UserControls\
-folder of ModelServicesPrismModule-project - With a context menu open
Wpf form Wizard
- As usual, on the first page of the dialog the destination folder is shown. The destination folder is the folder in which the generated file will be saved.
- Click “Next”-button
- On the second page of the dialog the developer should select existing DbContext file. Select:
- Dm02Context (project)
- LitDbContext (context)
- Click “Next”-button
-
On the third page of the dialog the developer should select the View. Select:
- “LitManuscriptView“.
-
Expand
ROOT/properties/DCContryName/Attributes/Display
and modify the nodes:- Description
- Name
- Short Name
- Prompt
-
by adding "Dialect"-word
- Expand
ROOT/properties/ACContryName/Attributes/Display
and modify the nodes:- Description
- Name
- Short Name
- Prompt
- by adding "Author"-word
- Click
Next >>
-button - On the next page select "1420-SformUserControl.xaml.cs"-action type and click "Next"-button
- select "SformUserControl.xaml.cs.t4" and click "Next"-button
- On the last page click "Save"-button
"Save" operation updates json-repo file.
Only AFTER THIS STEP you should run batch operations.
The batch operations always ignore changes applied to ViewModel properties. So, we executed "one file"-operation and save the result. "Save"-operation makes our changes persistent.
-
Close the wizard
-
Right click
Literature\LitManuscript\
-folder of ModelServicesPrismModule-pproject -
run Wpf Forms Wizard
-
using batch operations regenerate
- sform
- eform
- lform
-
As a result we have
- and
Note:
- Talking about renaming captions prompts and titles. You can accomplish this task with "WebApiServices"-wizard as well.