protected void rptNotification_OnItemDataBound(object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e) { var divNotification = e.Item.FindControl("divNotification") as System.Web.UI.HtmlControls.HtmlControl; var imgNotificationImage = e.Item.FindControl("imgNotificationImage") as System.Web.UI.WebControls.Image; var aNotificationLink = e.Item.FindControl("aNotificationLink") as System.Web.UI.HtmlControls.HtmlAnchor; var dataItem = (System.Data.DataRowView)((System.Web.UI.WebControls.RepeaterItem)e.Item).DataItem; eNotificationType NotificationType = (eNotificationType)dataItem[CS.eNotificationType].ToString().zToInt(); imgNotificationImage.ImageUrl = CU.GetNotificationImage(NotificationType); string Class = "divNotificationList Notification" + dataItem[CS.NotificationId]; if (Convert.ToInt32(dataItem[CS.eReadStatus]) != (int)eMessageStatus.Read) { Class += " NotificationActive"; } aNotificationLink.Visible = false; divNotification.Attributes.Add("class", Class); }
void ResponseHandler(eNotificationType type, eResponseType responseType, string input) { Debug.Log("HandleResponse + " + type.ToString() + " " + responseType.ToString() + "-" + input); }
public void DefaultResponseHandler(eNotificationType type, eResponseType responseType, string input) { Debug.Log("DefaultHandleResponse"); }