public static AddCommentDialogFragment NewInstance(List <string> formationsList) { AddCommentDialogFragment fragment = new AddCommentDialogFragment(); formations = formationsList; fragment.Arguments = new Bundle(); return(fragment); }
private async void requestNewComment() { List <string> formations = await FSNotesHandler.getFormationFilterListAsync(); formations.Sort(new FormationSorter()); AddCommentDialogFragment commentDialog = AddCommentDialogFragment.NewInstance(formations); startDialogFragment(commentDialog); }