コード例 #1
0
        private void CopySchedule(Schedule source, DtoSchedule target)
        {
            target.Id = source.Id;

            if (EditMode)
            {
                target.Name = source.Name;
            }
        }
コード例 #2
0
 public void SetSchedule(Schedule ar)
 {
     _editingSchedule = ar;
     if (Schedule != null)
     {
         Schedule.ErrorsChanged -= RaiseCanExecuteChanged;
     }
     Schedule = new DtoSchedule();
     Schedule.ErrorsChanged += RaiseCanExecuteChanged;
     CopySchedule(ar, Schedule);
 }
コード例 #3
0
 private void UpdateSchedule(DtoSchedule source, Schedule target)
 {
     target.Name = source.Name;
 }