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; } }
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; } }
private void OnComment(string username, string repo, string sha) { Comment = null; CommentsRequest = new CommitCommentsRequest(username, repo, sha); }