private void SyncProjectOnItemDelete(object sender, EventArgs eventArgs) { var item = sender as SyncProjectControl; if (item != null) { SyncProjectControls.Remove(item); SyncProjects.Remove(item.Item); OnPropertyChanged(nameof(IsSaveEnabled)); } }