void ReleaseDesignerOutlets() { if (NumSelectedParts != null) { NumSelectedParts.Dispose(); NumSelectedParts = null; } if (ParticipantsCollectionView != null) { ParticipantsCollectionView.Dispose(); ParticipantsCollectionView = null; } if (ParticipantsInstructions != null) { ParticipantsInstructions.Dispose(); ParticipantsInstructions = null; } if (RecordGabberButton != null) { RecordGabberButton.Dispose(); RecordGabberButton = null; } }
// i.e. they navigated to here or they segued from adding parts public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated); participantsViewSource.Rows = Queries.AllParticipants(); UpdateNumSelectedPartsLabel(); ParticipantsCollectionView.ReloadData(); }