private void AddType(IDynamicStack<Contact> creator, ShapeType type1, ShapeType type2)
{
ContactRegister register = new ContactRegister {Creator = creator, Primary = true};
contactStacks[(int)type1][(int)type2] = register;
if (type1 != type2)
{
ContactRegister register2 = new ContactRegister {Creator = creator, Primary = false};
contactStacks[(int)type2][(int)type1] = register2;
}
}