-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
7 changed files
with
85 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using System.Reactive; | ||
using AvaloniaSyncer.Sections.Explorer; | ||
using AvaloniaSyncer.Sections.Explorer.FileSystemConnections.Serialization; | ||
using CSharpFunctionalExtensions; | ||
using ReactiveUI; | ||
using Zafiro.FileSystem; | ||
|
||
namespace AvaloniaSyncer; | ||
|
||
public class ExplorerSectionViewModelDesign : IExplorerSectionViewModel | ||
{ | ||
public ExplorerSectionViewModelDesign() | ||
{ | ||
Connections = new ReadOnlyObservableCollection<IFileSystemConnectionViewModel>(new ObservableCollection<IFileSystemConnectionViewModel>(new List<IFileSystemConnectionViewModel>() | ||
{ | ||
(IFileSystemConnectionViewModel)new FileSystemConnectionDesign("Test1"), | ||
(IFileSystemConnectionViewModel)new FileSystemConnectionDesign("Test2"), | ||
})); | ||
} | ||
|
||
public ReadOnlyObservableCollection<IFileSystemConnectionViewModel> Connections { get; } | ||
} | ||
|
||
public class FileSystemConnectionDesign : IFileSystemConnectionViewModel | ||
{ | ||
public FileSystemConnectionDesign(string name) | ||
{ | ||
Name = name; | ||
} | ||
|
||
public ReactiveCommand<Unit, Result<IFileSystem>> Load { get; set; } | ||
public string Name { get; } | ||
} |
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
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