private void OnClose(object sender, RoutedEventArgs e) { ((Panel)Parent).Children.Remove(this); Model.RemoveZoneAt(ZoneIndex); }