Exemplo n.º 1
0
 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;
 }
Exemplo n.º 3
0
 /// <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);
 }
Exemplo n.º 4
0
 private void RemoveProfile(WorkSheetProfile profile)
 {
     Data?.Items?.Remove(profile);
     _repository.Save <ProfileList>();
 }
Exemplo n.º 5
0
 private void EditProfile(WorkSheetProfile profile)
 {
     EditData = profile;
 }
Exemplo n.º 6
0
 private void NewProfile()
 {
     Data.Items.Add(WorkSheetProfile.Create(_excelApplication.ActiveSheet.Name));
     _repository.Save <ProfileList>();
 }