private void ContentRemoved(object sender, EventArgsContentRemoved e) { EventHandler <EventArgsContentRemoved> ev = EventContentRemoved; if (ev != null) { ev(this, e); } }
private void ContentRemoved(object sender, EventArgsContentRemoved e) { Lock(); bool changed = false; int index = iLocation.Containers.IndexOf(sender as IContainer); if (index != -1 && (index == iLocation.Containers.Count - 1 || iLocation.Containers[index + 1].Id == e.Id)) { changed = true; } Unlock(); if (changed) { if (EventLocationChanged != null) { EventLocationChanged(this, EventArgs.Empty); } } }