Esempio n. 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;
            }
        }
Esempio n. 2
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;
     }
 }
Esempio n. 3
0
 private void OnComment(string username, string repo, string sha)
 {
     Comment = null;
     CommentsRequest = new CommitCommentsRequest(username, repo, sha);
 }
Esempio n. 4
0
 private void OnComment(string username, string repo, string sha)
 {
     Comment         = null;
     CommentsRequest = new CommitCommentsRequest(username, repo, sha);
 }