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

picture

  • Open "Table columns"-dialog and check "Country"-column for Author and "Country"-column for Dialect

picture

  • As a result we have two columns with Identical titles

picture

  • With "Update Item"-context menu

picture

  • Open Modify Item dialog. As a result we have two controls with Identical captions

picture

To fix this Issue

  • Right click Literature\LitManuscript\UserControls\-folder of ModelServicesPrismModule-project
  • With a context menu open Wpf form Wizard

picture

  • 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.

picture

- Click “Next”-button
  • On the second page of the dialog the developer should select existing DbContext file. Select:
    • Dm02Context (project)
    • LitDbContext (context)

picture

- 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

picture

  • Expand ROOT/properties/ACContryName/Attributes/Display and modify the nodes:
    • Description
    • Name
    • Short Name
    • Prompt
  • by adding "Author"-word

picture

  • Click Next >>-button
  • On the next page select "1420-SformUserControl.xaml.cs"-action type and click "Next"-button

picture

  • select "SformUserControl.xaml.cs.t4" and click "Next"-button

picture

  • On the last page click "Save"-button

picture

"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

picture

  • and

picture

Note:

  • Talking about renaming captions prompts and titles. You can accomplish this task with "WebApiServices"-wizard as well.