コード例 #1
0
        private void OnPivotChangedCommand(string username, string repo, string sha, SelectionChangedEventArgs args)
        {
            MinimizeAppBar = true;
            CanComment     = false;
            var header = (args.AddedItems[0] as PivotItem).Header as String;

            switch (header)
            {
            case "comments":
                MinimizeAppBar = false;
                CanComment     = true;
                if (CommentsRequest == null)
                {
                    CommentsRequest = new CommitCommentsRequest(username, repo, sha);
                }
                break;

            case "commit":
                CanComment = false;
                break;
            }
        }
コード例 #2
0
ファイル: CommitViewModel.cs プロジェクト: michelsalib/Gi7
 private void OnPivotChangedCommand(string username, string repo, string sha, SelectionChangedEventArgs args)
 {
     MinimizeAppBar = true;
     CanComment = false;
     var header = (args.AddedItems[0] as PivotItem).Header as String;
     switch (header)
     {
         case "comments":
             MinimizeAppBar = false;
             CanComment = true;
             if (CommentsRequest == null)
                 CommentsRequest = new CommitCommentsRequest(username, repo, sha);
             break;
         case "commit":
             CanComment = false;
             break;
     }
 }
コード例 #3
0
ファイル: CommitViewModel.cs プロジェクト: michelsalib/Gi7
 private void OnComment(string username, string repo, string sha)
 {
     Comment = null;
     CommentsRequest = new CommitCommentsRequest(username, repo, sha);
 }
コード例 #4
0
 private void OnComment(string username, string repo, string sha)
 {
     Comment         = null;
     CommentsRequest = new CommitCommentsRequest(username, repo, sha);
 }