コード例 #1
0
 private void Back(WorkSheetProfile profile)
 {
     EditData           = null;
     SelectedItem       = null;
     IsAutoCommandBegin = false;
     _excelApplication.SheetSelectionChange -= _excelApplication_SheetChange;
     _repository.Save <ProfileList>();
 }
コード例 #2
0
 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;
 }
コード例 #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);
 }
コード例 #4
0
 private void RemoveProfile(WorkSheetProfile profile)
 {
     Data?.Items?.Remove(profile);
     _repository.Save <ProfileList>();
 }
コード例 #5
0
 private void EditProfile(WorkSheetProfile profile)
 {
     EditData = profile;
 }
コード例 #6
0
 private void NewProfile()
 {
     Data.Items.Add(WorkSheetProfile.Create(_excelApplication.ActiveSheet.Name));
     _repository.Save <ProfileList>();
 }