public CreateIssueViewModel(GitHubApi githubApi, IGitHubSettings settings) { this.githubApi = githubApi; this.settings = settings; Repositories = new ObservableCollection<RepositoryModel>(); CreateIssueCommand = new DelegateCommand(CreateIssue); }
public CreateIssueViewModel(GitHubApi githubApi, IGitHubSettings settings) { this.githubApi = githubApi; this.settings = settings; Repositories = new ObservableCollection <RepositoryModel>(); CreateIssueCommand = new DelegateCommand(CreateIssue); }
public SettingsViewModel(GitHubApi githubApi, IGitHubSettings settings) { this.githubApi = githubApi; this.settings = settings; LoginCommand = new DelegateCommand <PasswordBox>(Login, p => !LoggingIn); CancelCommand = new DelegateCommand(() => OnClose()); ClearLoginDetailsCommand = new DelegateCommand(ClearLoginDetails); }
public SettingsViewModel(GitHubApi githubApi, IGitHubSettings settings) { this.githubApi = githubApi; this.settings = settings; LoginCommand = new DelegateCommand<PasswordBox>(Login, p => !LoggingIn); CancelCommand = new DelegateCommand(() => OnClose()); ClearLoginDetailsCommand = new DelegateCommand(ClearLoginDetails); }
public GitHubService(IGitHubSettings settings) { if (String.IsNullOrEmpty(settings.Username)) { return; } var basicAuth = new Credentials(settings.Username, settings.Password); gitHubClient = new GitHubClient(new ProductHeaderValue("scribs")); gitHubClient.Credentials = basicAuth; }