public void Unexecute() { for (int i = 0; i < not_sticky.Count; i++) { not_sticky[i].ChangeSticky(false); } vector.Remove(group); for (int i = 0; i < group.Count(); i++) { group[i].ChangeColor(colors[i]); group[i].ChangeGrouped(false); vector.Add(group[i]); } for (int i = 0; i < vector.Count(); i++) { if (vector[i].IsSticky()) { for (int j = 0; j < vector.Count(); j++) { if (vector[j].IsToStick(vector[i]) && !vector[j].IsSticked() && (i != j)) { vector[j].ChangeSticked(true); vector[j].AddObserver(vector[i]); vector[i].AddObserver(vector[j]); } } } } }
public void Unexecute() { vector.Remove(figure); }