public sp_ProfileListResult GetById(int id) { sp_ProfileListResult profileItem = null; foreach (sp_ProfileListResult profileProperty in InnerList) { if ((profileProperty.ProfileID == id)) { // Found Profile property profileItem = profileProperty; } } return(profileItem); }
public sp_ProfileListResult GetByName(string name) { sp_ProfileListResult profileItem = null; foreach (sp_ProfileListResult profileProperty in InnerList) { if ((profileProperty.Name == name)) { // Found Profile property profileItem = profileProperty; } } return(profileItem); }
private void MoveProperty(int index, int destIndex) { try { sp_ProfileListResult objProperty = ProfileProperties[index]; sp_ProfileListResult objNext = ProfileProperties[destIndex]; int currentOrder = (int)objProperty.DisplayOrder; int nextOrder = (int)objNext.DisplayOrder; // Swap ViewOrders objProperty.DisplayOrder = nextOrder; ProfileProperties[index] = objProperty; objNext.DisplayOrder = currentOrder; ProfileProperties[destIndex] = objNext; // 'Refresh Grid ProfileProperties.Sort(); BindGrid(); } catch (Exception ex) { ProcessException(ex); } }
public void Remove(sp_ProfileListResult value) { List.Remove(value); }
public void Insert(int index, sp_ProfileListResult value) { List.Insert(index, value); }
public int IndexOf(sp_ProfileListResult value) { return List.IndexOf(value); }
public bool Contains(sp_ProfileListResult value) { return List.Contains(value); }
public int Add(sp_ProfileListResult value) { return List.Add(value); }
public int IndexOf(sp_ProfileListResult value) { return(List.IndexOf(value)); }
public bool Contains(sp_ProfileListResult value) { return(List.Contains(value)); }
public int Add(sp_ProfileListResult value) { return(List.Add(value)); }