From 22726129beaf1912469f5c747a8c6411cf6c85dc Mon Sep 17 00:00:00 2001 From: Hamster Date: Wed, 9 Oct 2024 21:25:00 +0800 Subject: [PATCH] Use predefined dialog button texts (1/n). --- .../KeyLogAnalysisRuleSetEditorDialog.axaml | 21 ++++++++++--------- ...KeyLogAnalysisRuleSetEditorDialog.axaml.cs | 7 +------ .../LogAnalysisScriptSetEditorDialog.axaml | 14 ++++++------- .../LogAnalysisScriptSetEditorDialog.axaml.cs | 2 +- ...nCountingAnalysisRuleSetEditorDialog.axaml | 17 ++++++++------- ...untingAnalysisRuleSetEditorDialog.axaml.cs | 11 +++------- ...nDurationAnalysisRuleSetEditorDialog.axaml | 21 ++++++++++--------- ...rationAnalysisRuleSetEditorDialog.axaml.cs | 7 +------ .../PredefinedLogTextFilterEditorDialog.axaml | 6 +++--- ...edefinedLogTextFilterEditorDialog.axaml.cs | 7 +------ ...iptLogDataSourceProviderEditorDialog.axaml | 2 +- ...LogDataSourceProviderEditorDialog.axaml.cs | 2 +- 12 files changed, 50 insertions(+), 67 deletions(-) diff --git a/ULogViewer/Controls/KeyLogAnalysisRuleSetEditorDialog.axaml b/ULogViewer/Controls/KeyLogAnalysisRuleSetEditorDialog.axaml index dd3fddf2..066552bb 100644 --- a/ULogViewer/Controls/KeyLogAnalysisRuleSetEditorDialog.axaml +++ b/ULogViewer/Controls/KeyLogAnalysisRuleSetEditorDialog.axaml @@ -7,6 +7,7 @@ xmlns:asControls="using:CarinaStudio.AppSuite.Controls" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="CarinaStudio.ULogViewer.Controls.KeyLogAnalysisRuleSetEditorDialog" + Name="dialog" CanResize="True" Classes="Dialog" Height="{StaticResource Double/KeyLogAnalysisRuleSetEditorDialog.Height}" @@ -23,10 +24,10 @@ - - - @@ -102,7 +102,7 @@ - diff --git a/ULogViewer/Controls/LogAnalysisScriptSetEditorDialog.axaml.cs b/ULogViewer/Controls/LogAnalysisScriptSetEditorDialog.axaml.cs index a5049dac..7ee2a588 100644 --- a/ULogViewer/Controls/LogAnalysisScriptSetEditorDialog.axaml.cs +++ b/ULogViewer/Controls/LogAnalysisScriptSetEditorDialog.axaml.cs @@ -20,7 +20,7 @@ namespace CarinaStudio.ULogViewer.Controls; /// /// Dialog to edit log analysis script set. /// -class LogAnalysisScriptSetEditorDialog : CarinaStudio.Controls.ApplicationWindow +class LogAnalysisScriptSetEditorDialog : Dialog { // Static fields. static readonly DirectProperty AnalysisScriptDocumentUriProperty = AvaloniaProperty.RegisterDirect(nameof(AnalysisScriptDocumentUri), d => d.analysisScriptDocumentUri); diff --git a/ULogViewer/Controls/OperationCountingAnalysisRuleSetEditorDialog.axaml b/ULogViewer/Controls/OperationCountingAnalysisRuleSetEditorDialog.axaml index 8c288e58..037a7143 100644 --- a/ULogViewer/Controls/OperationCountingAnalysisRuleSetEditorDialog.axaml +++ b/ULogViewer/Controls/OperationCountingAnalysisRuleSetEditorDialog.axaml @@ -7,6 +7,7 @@ xmlns:asControls="using:CarinaStudio.AppSuite.Controls" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="CarinaStudio.ULogViewer.Controls.OperationCountingAnalysisRuleSetEditorDialog" + Name="dialog" CanResize="True" Classes="Dialog" Height="{StaticResource Double/OperationCountingAnalysisRuleSetEditorDialog.Height}" @@ -23,10 +24,10 @@ - - - - - - -