1515using GitHub . ViewModels ;
1616using GitHub . VisualStudio . TeamExplorer . Home ;
1717using ReactiveUI ;
18+ using GitHub . VisualStudio . TeamExplorer . Connect ;
19+ using System . Collections . ObjectModel ;
1820
1921namespace GitHub . SampleData
2022{
@@ -199,6 +201,7 @@ class Conn : IConnection
199201 public HostAddress HostAddress { get ; set ; }
200202
201203 public string Username { get ; set ; }
204+ public ObservableCollection < ISimpleRepositoryModel > Repositories { get ; set ; }
202205
203206 public IObservable < IConnection > Login ( )
204207 {
@@ -208,6 +211,10 @@ public IObservable<IConnection> Login()
208211 public void Logout ( )
209212 {
210213 }
214+
215+ public void Dispose ( )
216+ {
217+ }
211218 }
212219
213220 public RepositoryPublishViewModelDesigner ( )
@@ -398,12 +405,16 @@ public RepositoryModelDesigner(string name, string owner)
398405 Owner = new AccountDesigner { Login = owner } ;
399406 }
400407
408+ public void SetIcon ( bool isPrivate , bool isFork )
409+ {
410+ }
411+
412+ public string Name { get ; set ; }
401413 public UriString CloneUrl { get ; set ; }
414+ public string LocalPath { get ; set ; }
402415
403416 public Octicon Icon { get ; set ; }
404417
405- public string Name { get ; set ; }
406-
407418 public IAccount Owner { get ; set ; }
408419 }
409420
@@ -530,4 +541,46 @@ public string RepoUrl
530541 set ;
531542 }
532543 }
544+
545+ public class GitHubConnectSectionDesigner : IGitHubConnectSection
546+ {
547+ public GitHubConnectSectionDesigner ( )
548+ {
549+ Repositories = new ObservableCollection < ISimpleRepositoryModel > ( ) ;
550+ Repositories . Add ( new SimpleRepositoryModel ( "octokit" , new UriString ( "https://github.com/octokit/octokit.net" ) , @"C:\Users\user\Source\Repos\octokit.net" ) ) ;
551+ Repositories . Add ( new SimpleRepositoryModel ( "cefsharp" , new UriString ( "https://github.com/cefsharp/cefsharp" ) , @"C:\Users\user\Source\Repos\cefsharp" ) ) ;
552+ Repositories . Add ( new SimpleRepositoryModel ( "git-lfs" , new UriString ( "https://github.com/github/git-lfs" ) , @"C:\Users\user\Source\Repos\git-lfs" ) ) ;
553+ Repositories . Add ( new SimpleRepositoryModel ( "another octokit" , new UriString ( "https://github.com/octokit/octokit.net" ) , @"C:\Users\user\Source\Repos\another-octokit.net" ) ) ;
554+ Repositories . Add ( new SimpleRepositoryModel ( "some cefsharp" , new UriString ( "https://github.com/cefsharp/cefsharp" ) , @"C:\Users\user\Source\Repos\something-else" ) ) ;
555+ Repositories . Add ( new SimpleRepositoryModel ( "even more git-lfs" , new UriString ( "https://github.com/github/git-lfs" ) , @"C:\Users\user\Source\Repos\A different path" ) ) ;
556+ }
557+
558+ public ObservableCollection < ISimpleRepositoryModel > Repositories
559+ {
560+ get ; set ;
561+ }
562+
563+ public void DoClone ( )
564+ {
565+ }
566+
567+ public void DoCreate ( )
568+ {
569+ }
570+
571+ public void SignOut ( )
572+ {
573+ }
574+
575+ public void Login ( )
576+ {
577+ }
578+
579+ public bool OpenRepository ( )
580+ {
581+ return true ;
582+ }
583+
584+ public IConnection SectionConnection { get ; }
585+ }
533586}
0 commit comments