protected override void BeforeLoad() { if (MainWindow != null) { MainWindow.ModalClosedEvent += OnSmallModalClosed; } if (!IncludeDeletedContacts) { CustomerContacts.Remove(c => c.IsDeleted); } }
private void OnRemove(object obj) { Repository.Remove(SelectedCustomerContact); CustomerContacts.Remove(SelectedCustomerContact); }