-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c89c025
commit ad78f57
Showing
39 changed files
with
1,127 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using MusicDecrypto.Library; | ||
|
||
namespace MusicDecrypto.Avalonia.ViewModels; | ||
|
||
public class MatchViewModel(IEnumerable<DecryptoBase.MatchInfo> properties) : ViewModelBase | ||
public class MatchViewModel : ViewModelBase | ||
{ | ||
public IEnumerable<DecryptoBase.MatchInfo> Properties { get; init; } = properties; | ||
public MatchViewModel(DecryptoBase.MatchInfo local, DecryptoBase.MatchInfo remote) | ||
{ | ||
Items = new ObservableCollection<KeyValuePair<string, DecryptoBase.MatchInfo>> | ||
{ | ||
KeyValuePair.Create("Local", local), | ||
KeyValuePair.Create("Remote", remote), | ||
}; | ||
} | ||
|
||
public IEnumerable<KeyValuePair<string, DecryptoBase.MatchInfo>> Items { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.