Skip to content

Commit

Permalink
feat: update some viewmodel selected name
Browse files Browse the repository at this point in the history
  • Loading branch information
czastack committed Dec 12, 2023
1 parent 139e325 commit 83b5bb9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RszTool.App/ViewModels/BaseRszFileViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,11 @@ public void NotifyItemsChanged()
OnPropertyChanged(nameof(Items));
}

public override string ToString()
{
return Instance.Name;
}

public static ObservableCollection<GameObejctComponentViewModel> MakeList(IGameObjectData gameObject)
{
ObservableCollection<GameObejctComponentViewModel> list = new();
Expand Down
5 changes: 5 additions & 0 deletions RszTool.App/ViewModels/TreeItemViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ public abstract class BaseTreeItemViewModel(string name) : INotifyPropertyChange
public event PropertyChangedEventHandler? PropertyChanged;
public string Name { get; set; } = name;
public abstract IEnumerable<object>? Items { get; }

public override string ToString()
{
return Name;
}
}


Expand Down

0 comments on commit 83b5bb9

Please sign in to comment.