public TasksViewModel(IInnerNavigator <Task> navigator, IIssueDataService issueService, ITaskDataService taskDataService)
 {
     InnerTasksNavigator = navigator;
     _issueService       = issueService;
     InnerTasksNavigator.ParentViewModel = this;
     UpdateDeleteButtonsVisibility       = "Collapsed";
     AddButtonVisibility = "Collapsed";
     DeleteTasksCommand  = new DeleteTasksCommand(this, taskDataService);
 }
Esempio n. 2
0
        public SearchViewModel(IRepoDataService repoDataService, IUserDataService userDataService,
                               IIssueDataService issueDataService, IGithubClientService githubClientService,
                               IMvxMessenger messenger, IDialogService dialogService)
            : base(githubClientService, messenger, dialogService)
        {
            _repoDataService  = repoDataService;
            _userDataService  = userDataService;
            _issueDataService = issueDataService;

            SearchCommand = new MvxCommand(ExecuteSearch);

            IssueClickCommand      = new MvxCommand <object>(GoToIssue);
            RepositoryClickCommand = new MvxCommand <object>(GoToRepository);
            UserClickCommand       = new MvxCommand <object>(GoToUser);

            FilterIndexUpdaterCommand = new MvxCommand <string>(UpdateFilterIndex);
        }
 public UpdateIssueViewModel(INavigator <InnerViewModel> navigator, IIssueDataService issueDataService)
 {
     _navigator = (IInnerNavigator <Issue>)navigator;
     StatusList = new List <string>()
     {
         "New", "In progress", "Closed"
     };
     OriginIssue   = _navigator.ParentViewModel.SelectedItem;
     IssueToUpdate = new Issue()
     {
         Id        = OriginIssue.Id,
         AccountId = OriginIssue.AccountId,
         Account   = OriginIssue.Account,
         Title     = OriginIssue.Title,
         Status    = OriginIssue.Status,
         StartDate = OriginIssue.StartDate
     };
     UpdateIssueCommand    = new UpdateIssueCommand(this, issueDataService);
     CloseInnerViewCommand = new CloseInnerViewCommand(this);
 }
Esempio n. 4
0
 public IssuesViewModel(IIssueDataService issueDataService, IGithubClientService githubClientService, IMvxMessenger messenger, IDialogService dialogService) : base(githubClientService, messenger, dialogService)
 {
     _issueDataService = issueDataService;
 }
 public DeleteIssuesCommand(IssuesViewModel isVM, IIssueDataService issueDataService)
 {
     _isVM             = isVM;
     _issueDataService = issueDataService;
 }
Esempio n. 6
0
 public UpdateIssueCommand(UpdateIssueViewModel upVM, IIssueDataService issueDataService)
 {
     _upVM             = upVM;
     _issueDataService = issueDataService;
 }
 public AddIssueCommand(AddIssueViewModel addVM, IIssueDataService issueDataService)
 {
     _addVM            = addVM;
     _issueDataService = issueDataService;
 }
 public IssuesViewModel(IInnerNavigator <Issue> nav, IAuthenticator authenticator, IAccountDataService accountDataService, IIssueDataService issueDataService)
 {
     SelectedItem         = null;
     InnerIssuesNavigator = nav;
     _authenticator       = authenticator;
     _accountDataService  = accountDataService;
     InnerIssuesNavigator.ParentViewModel = this;
     DeleteIssuesCommand = new DeleteIssuesCommand(this, issueDataService);
     if (authenticator.IsLoggedIn)
     {
         LoadIssues();
     }
 }
 public RootInnerViewModelFactory(IAuthenticator authenticator, IIssueDataService issueDataService, ITaskDataService taskDataService)
 {
     _authenticator    = authenticator;
     _issueDataService = issueDataService;
     _taskDataService  = taskDataService;
 }
        public AddIssueViewModel(INavigator <InnerViewModel> nnavigator, IAuthenticator authenticator, IIssueDataService issueDataService)
        {
            navigator      = (IInnerNavigator <Issue>)nnavigator;
            _authenticator = authenticator;

            StatusList = new List <string>()
            {
                "New", "In progress"
            };

            IssueToAdd = new Issue {
                AccountId = _authenticator.CurrentAccount.Id,
                Title     = "",
                StartDate = DateTime.Today,
                Status    = ""
            };
            AddIssueCommand       = new AddIssueCommand(this, issueDataService);
            CloseInnerViewCommand = new CloseInnerViewCommand(this);
        }