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