コード例 #1
0
 private void UpdateOrganizer(DtoOrganizer source, Organizer target)
 {
     target.FirstName = source.FirstName;
     target.LastName  = source.LastName;
     target.City      = source.City;
     target.State     = source.State;
     target.City      = source.City;
     target.Street    = source.Street;
 }
コード例 #2
0
 public void SetOrganizer(Organizer ar)
 {
     _editingOrganizer = ar;
     if (Organizer != null)
     {
         Organizer.ErrorsChanged -= RaiseCanExecuteChanged;
     }
     Organizer = new DtoOrganizer();
     Organizer.ErrorsChanged += RaiseCanExecuteChanged;
     CopyOrganizer(ar, Organizer);
 }
コード例 #3
0
        private void CopyOrganizer(Organizer source, DtoOrganizer target)
        {
            target.Id = source.Id;

            if (EditMode)
            {
                target.FirstName = source.FirstName;
                target.LastName  = source.LastName;
                target.City      = source.City;
                target.State     = source.State;
                target.City      = source.City;
                target.Street    = source.Street;
            }
        }