public bool Contions(Selection SelecionItem) { foreach (Selection item in m_SelectionList) { if (item.ID == SelecionItem.ID) return true; } return false; }
public void RemoveSelection(Selection SelecionItem) { foreach (Selection item in m_SelectionList) { if (item.ID == SelecionItem.ID) { m_SelectionList.Remove(item); break; } } }
public void AddSelection(Selection SelecionItem) { if (!Contions(SelecionItem)) m_SelectionList.Add(SelecionItem); }