private void AddSection()
        {
            var section = new DealCreationSection();

            section.RemoveSectionCommand = new DelegateCommand <DealCreationSection>(RemoveSection);
            section.PropertyChanged     += Section_PropertyChanged;
            _sections.Add(section);
        }
 private static DealSection BuildDealSection(DealCreationSection input)
 {
     return(new DealSection
     {
         ProductType = input.ProductType,
         Direction = input.Direction.DtoValue,
         Notional = input.Notional.Value,
         DeliveryFrom = input.DeliveryFrom.Value,
         DeliveryUntil = input.DeliveryUntil.Value
     });
 }
 private void RemoveSection(DealCreationSection section)
 {
     section.PropertyChanged += Section_PropertyChanged;
     _sections.Remove(section);
     SubmitCommand.RaiseCanExecuteChanged();
 }
 private void AddSection()
 {
     var section = new DealCreationSection();
     section.RemoveSectionCommand = new DelegateCommand<DealCreationSection>(RemoveSection);
     section.PropertyChanged += Section_PropertyChanged;
     _sections.Add(section);
 }
 private static DealSection BuildDealSection(DealCreationSection input)
 {
     return new DealSection
     {
         ProductType = input.ProductType,
         Direction = input.Direction.DtoValue,
         Notional = input.Notional.Value,
         DeliveryFrom = input.DeliveryFrom.Value,
         DeliveryUntil = input.DeliveryUntil.Value
     };
 }
 private void RemoveSection(DealCreationSection section)
 {
     section.PropertyChanged += Section_PropertyChanged;
     _sections.Remove(section);
     SubmitCommand.RaiseCanExecuteChanged();
 }