Пример #1
0
        public void GetGitData()
        {
            _logic = new RepositoryPageFormLogic(RepoPath);
            _logic.InitRepositoryData();

            SetInitControlValues();

            if (_logic.HasProperAddress)
            {
                AuthorRows.AddRange(_logic.GetAuthors());

                if (AuthorRows.Count > 0)
                {
                    CommitRows.AddRange(_logic.GetCommitsSortedDescByDate(AuthorRows[0].Email));
                }

                ReadOnlyMode = false;
            }
            else
            {
                InvalidRepoPathInfo = "W podanej lokalizacji nie istnie repozytorium git";
                ReadOnlyMode        = true;
            }
            Session.InvokeChanged();
        }
Пример #2
0
 private void SetInitControlValues()
 {
     AuthorRows.Clear();
     CommitRows.Clear();
     InvalidRepoPathInfo = string.Empty;
     InvalidRangeInfo    = string.Empty;
     CountCommandDate    = DateTime.Today;
     AverageDateFrom     = DateTime.Today;
     AverageDateTo       = DateTime.Today;
     CommitCount         = 0;
     AverageCommitCount  = 0;
 }