private void Back(WorkSheetProfile profile) { EditData = null; SelectedItem = null; IsAutoCommandBegin = false; _excelApplication.SheetSelectionChange -= _excelApplication_SheetChange; _repository.Save <ProfileList>(); }
public void AddFoundItems(IEnumerable <AddressModel> items, WorkSheetProfile profile) { Profile = profile; CVS_found = new CollectionViewSource(); CVS_found.Source = items; CVS_found.View.Filter = FilterMethod_found; NotFoundItems = CVS_found.View; }
/// <summary> /// Сообщает об удачной проверке целостности данных профиля /// </summary> private bool profileCheck(WorkSheetProfile profile) { return (profile.FirstAddressCell.Row > 0 && profile.FirstAddressCell.Column > 0 && profile.LastAddressCell.Row > 0 && profile.LastAddressCell.Column > 0 && profile.FirstDistrictCell.Row > 0 && profile.FirstDistrictCell.Column > 0); }
private void RemoveProfile(WorkSheetProfile profile) { Data?.Items?.Remove(profile); _repository.Save <ProfileList>(); }
private void EditProfile(WorkSheetProfile profile) { EditData = profile; }
private void NewProfile() { Data.Items.Add(WorkSheetProfile.Create(_excelApplication.ActiveSheet.Name)); _repository.Save <ProfileList>(); }