|
@@ -30,14 +30,20 @@ namespace PRSDesktop
|
|
|
public QuoteProposalDetails()
|
|
|
{
|
|
|
InitializeComponent();
|
|
|
-
|
|
|
- Preamble.EditorDefinition = new RichTextEditor();
|
|
|
+
|
|
|
+ Preamble.EditorDefinition = (CoreUtils.GetProperty<QuoteProposal>(nameof(QuoteProposal.Preamble))?
|
|
|
+ .GetEditor() as RichTextEditor)?
|
|
|
+ .Clone() as RichTextEditor
|
|
|
+ ?? new RichTextEditor();
|
|
|
Preamble.ColumnName = "Preamble";
|
|
|
Preamble.Configure();
|
|
|
Preamble.OnEditorValueChanged += Preamble_OnEditorValueChanged;
|
|
|
Preamble.Loaded = true;
|
|
|
|
|
|
- Summary.EditorDefinition = new RichTextEditor();
|
|
|
+ Summary.EditorDefinition = (CoreUtils.GetProperty<QuoteProposal>(nameof(QuoteProposal.Summary))?
|
|
|
+ .GetEditor() as RichTextEditor)?
|
|
|
+ .Clone() as RichTextEditor
|
|
|
+ ?? new RichTextEditor();
|
|
|
Summary.ColumnName = "Summary";
|
|
|
Summary.Configure();
|
|
|
Summary.OnEditorValueChanged += Summary_OnEditorValueChanged;
|
|
@@ -61,8 +67,6 @@ namespace PRSDesktop
|
|
|
IncTax.Loaded = true;
|
|
|
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
|
|
|
public void Refresh(bool columns, bool data)
|
|
|
{
|