public void Unregister(DataViewList list) { if (!lists.Contains(list)) { Debug.LogErrorFormat("List '{0}' has not been registered.", list.DataView.name); } else { lists.Remove(list); } }
public void Register(DataViewList list) { if (lists.Contains(list)) { Debug.LogErrorFormat("List '{0}' is already registered.", list.DataView.name); } else { lists.Add(list); } }
public void Focus(DataViewList list) { if (!lists.Contains(list)) { Debug.LogWarningFormat("Cannot focus on list '{0}' as it has not been registered. Call Register first.", list.DataView.name); } else { index = lists.IndexOf(list); Focus(index); } }