ui(manager): add name column
This commit is contained in:
@@ -195,6 +195,10 @@
|
||||
Header="{x:Static langRes:GeneralLangRes.Id}"
|
||||
Binding="{Binding InheritedId}"/>
|
||||
|
||||
<DataGridTextColumn
|
||||
Header="{x:Static langRes:GeneralLangRes.Name}"
|
||||
Binding="{Binding InheritedName}"/>
|
||||
|
||||
<DataGridTextColumn
|
||||
Header="{x:Static langRes:GeneralLangRes.Side}"
|
||||
Binding="{Binding InheritedSide}"/>
|
||||
|
||||
@@ -23,15 +23,22 @@ public class MainWindowGridRow(InstallAction action, IActionSet baseActions) : I
|
||||
|
||||
[DependsOn(nameof(Id), nameof(InheritFrom))]
|
||||
public string? InheritedId => action is UpdateAction ua && !string.IsNullOrWhiteSpace(ua.InheritFrom) ? ua.InheritFrom : action.Id;
|
||||
|
||||
[DependsOn(nameof(Side), nameof(InheritedId), nameof(Id))]
|
||||
public string InheritedSide => Sides[Inherited.Side];
|
||||
|
||||
[DependsOn(nameof(UpdateType), nameof(InheritedId), nameof(Id))]
|
||||
public string InheritedUpdateType => action is UpdateAction ua ? UpdateActionTypes[ua.Type] : string.Empty;
|
||||
|
||||
[DependsOn(nameof(SourceType), nameof(InheritedId), nameof(Id))]
|
||||
public string InheritedSourceType => SourceTypes[Inherited.SourceType];
|
||||
|
||||
[DependsOn(nameof(DestPath), nameof(InheritedId), nameof(Id))]
|
||||
public string? InheritedDestPath => Inherited.DestPath;
|
||||
|
||||
[DependsOn(nameof(Name), nameof(InheritedId), nameof(Id))]
|
||||
public string? InheritedName => Inherited.Name;
|
||||
|
||||
public string? Id
|
||||
{
|
||||
get => action.Id;
|
||||
|
||||
Reference in New Issue
Block a user