public string showName(DvdStateContext dvdStateContext, string nameIn) { string retval = nameIn.Replace(" ","!"); //show exclaim only once, switch back to stars dvdStateContext.setDvdStateName(new DvdStateNameStars()); return retval; }
public string showName(DvdStateContext dvdStateContext, string nameIn) { string retval = nameIn.Replace(" ", "!"); //show exclaim only once, switch back to stars dvdStateContext.setDvdStateName(new DvdStateNameStars()); return(retval); }
public string showName(DvdStateContext dvdStateContext, string nameIn) { string retval = nameIn.Replace(" ","*"); // show stars twice, switch to exclamation point if (++starCount > 1) { dvdStateContext.setDvdStateName( new DvdStateNameExclaim()); } return retval; }
public string showName(DvdStateContext dvdStateContext, string nameIn) { string retval = nameIn.Replace(" ", "*"); // show stars twice, switch to exclamation point if (++starCount > 1) { dvdStateContext.setDvdStateName(new DvdStateNameExclaim()); } return(retval); }