修复注释乱码
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using XP.ImageProcessing.Core;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using XP.ImageProcessing.Core;
|
||||
|
||||
namespace XP.ImageProcessing.CfgControl;
|
||||
|
||||
@@ -24,7 +24,7 @@ public partial class ProcessorParameterControl : UserControl
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新"未选择算子"的文�?
|
||||
/// 更新"未选择算子"的文本
|
||||
/// </summary>
|
||||
private void UpdateNoProcessorText()
|
||||
{
|
||||
@@ -41,7 +41,7 @@ public partial class ProcessorParameterControl : UserControl
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载算子参数并生�?UI
|
||||
/// 加载算子参数并生成 UI
|
||||
/// </summary>
|
||||
public void LoadProcessor(ImageProcessorBase? processor)
|
||||
{
|
||||
@@ -68,7 +68,7 @@ public partial class ProcessorParameterControl : UserControl
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据参数类型创建对应的控�?
|
||||
/// 根据参数类型创建对应的控件
|
||||
/// </summary>
|
||||
private void CreateParameterControl(ProcessorParameter param)
|
||||
{
|
||||
@@ -88,7 +88,7 @@ public partial class ProcessorParameterControl : UserControl
|
||||
};
|
||||
pnlParameters.Children.Add(label);
|
||||
|
||||
// 根据参数类型创建不同的控�?
|
||||
// 根据参数类型创建不同的控件
|
||||
UIElement? control = null;
|
||||
|
||||
if (param.ValueType == typeof(int))
|
||||
@@ -133,8 +133,8 @@ public partial class ProcessorParameterControl : UserControl
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 创建整数类型控件(Slider + TextBox 或仅 TextBox�?
|
||||
/// �?MinValue �?MaxValue 都为 null 时,只显示文本框,不显示滑块
|
||||
/// 创建整数类型控件(Slider + TextBox 或仅 TextBox)
|
||||
/// 当 MinValue 和 MaxValue 都为 null 时,只显示文本框,不显示滑块
|
||||
/// </summary>
|
||||
private UIElement CreateIntegerControl(ProcessorParameter param)
|
||||
{
|
||||
@@ -201,8 +201,8 @@ public partial class ProcessorParameterControl : UserControl
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 创建浮点数类型控件(Slider + TextBox 或仅 TextBox�?
|
||||
/// �?MinValue �?MaxValue 都为 null 时,只显示文本框,不显示滑块
|
||||
/// 创建浮点数类型控件(Slider + TextBox 或仅 TextBox)
|
||||
/// 当 MinValue 和 MaxValue 都为 null 时,只显示文本框,不显示滑块
|
||||
/// </summary>
|
||||
private UIElement CreateDoubleControl(ProcessorParameter param)
|
||||
{
|
||||
@@ -268,7 +268,7 @@ public partial class ProcessorParameterControl : UserControl
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 创建布尔类型控件(CheckBox�?
|
||||
/// 创建布尔类型控件(CheckBox)
|
||||
/// </summary>
|
||||
private UIElement CreateBooleanControl(ProcessorParameter param)
|
||||
{
|
||||
@@ -295,7 +295,7 @@ public partial class ProcessorParameterControl : UserControl
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 创建下拉框控件(ComboBox�?
|
||||
/// 创建下拉框控件(ComboBox)
|
||||
/// </summary>
|
||||
private UIElement CreateComboBoxControl(ProcessorParameter param)
|
||||
{
|
||||
@@ -322,7 +322,7 @@ public partial class ProcessorParameterControl : UserControl
|
||||
{
|
||||
_currentProcessor?.SetParameter(param.Name, comboBox.SelectedItem.ToString()!);
|
||||
|
||||
// 如果�?FilterType 参数,重新加载界面以更新参数可见�?
|
||||
// 如果是 FilterType 参数,重新加载界面以更新参数可见性
|
||||
if (param.Name == "FilterType")
|
||||
{
|
||||
LoadProcessor(_currentProcessor);
|
||||
@@ -336,7 +336,7 @@ public partial class ProcessorParameterControl : UserControl
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 创建文本框控件(TextBox�?
|
||||
/// 创建文本框控件(TextBox)
|
||||
/// </summary>
|
||||
private UIElement CreateTextBoxControl(ProcessorParameter param)
|
||||
{
|
||||
@@ -358,7 +358,7 @@ public partial class ProcessorParameterControl : UserControl
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取当前配置的算�?
|
||||
/// 获取当前配置的算子
|
||||
/// </summary>
|
||||
public ImageProcessorBase? GetProcessor()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user