Beispiel #1
0
 private void BindChats()
 {
     using (IDataReader reader = UserReport.GetChats(IsAdmin?0:iCurUserId))
     {
         while (reader.Read())
         {
             lstChats.Items.Add(new ListItem(reader["name"].ToString(), reader["chat_id"].ToString()));
         }
     }
     if (lstChats.Items.Count <= 0)
     {
         lstChats.Style.Add("display", "none");
         noConferences.Text    = LocRM.GetString("NoConferences");
         noConferences.Visible = true;
     }
     else
     {
         lstChats.Style.Add("display", "inline");
         noConferences.Visible = false;
     }
 }