private float GetElementHeightLocation(int index) { IListItemDrawer itemDrawer = (IListItemDrawer)settingObject.SaveLocations[index]; if (itemDrawer != null) { return(itemDrawer.GetElementHeight(line_height) + 6); } return(line_height + 6); }
private float GetElementHeightVariables(int index) { IListItemDrawer itemDrawer = (IListItemDrawer)settingObject.Data[index]; if (itemDrawer != null) { return(itemDrawer.GetElementHeight(line_height) + 6); } if (settingObject.Data[index] == null) { return(line_height + 6); } return((line_height + 2) * 1 + 6); }