/// <summary> /// Select Trailer /// </summary> /// <returns>The instance.</returns> /// <param name="confirmAction">Confirm action.</param> /// <param name="cancelAction">Cancel action.</param> public static SelectTrailerFragment NewInstance(Action <Trailer> confirmAction, Action cancelAction) { var fragment = new SelectTrailerFragment { Arguments = new Bundle() }; fragment._confirmAction = confirmAction; fragment._cancelAction = cancelAction; return(fragment); }
void NavigateToSelectTrailer() { _selectTrailerFragment = SelectTrailerFragment.NewInstance(OnConfirmTrailer, OnCancelTrailer); _selectTrailerFragment.Show(FragmentManager, SelectTrailerFragment.TAG); }