public static ChannelInfo getTimeshiftInfo(ref TvControl.IUser me) { int channelnr = 0; if (timeshiftChannel.TryGetValue(me.Name, out channelnr)) { return(serverIntf.GetChannelInfo(channelnr)); } else if (me.IdChannel > 0) { return(serverIntf.GetChannelInfo(me.IdChannel)); } return(null); }