public static DeleteConfirmationDialog NewInstance(string formation, string comment) { DeleteConfirmationDialog fragment = new DeleteConfirmationDialog(); Bundle args = new Bundle(); args.PutString(FORMATION, formation); args.PutString(COMMENT, comment); fragment.Arguments = args; return(fragment); }
private void handleCommentRemoveClick(object sender, EventArgs e) { int positionTag = (int)(((ImageButton)sender).GetTag(Resource.Id.removeComment)); int groupPos = parseGroupFromTag(positionTag); int childPos = parseChildFromTag(positionTag); string formation = getKey(groupPos); string comment = FilteredData[formation][childPos]; DeleteConfirmationDialog dialogFrag = DeleteConfirmationDialog.NewInstance(formation, comment); listener.startDialogFragment(dialogFrag); }