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
     });
 }
Exemplo n.º 3
0
 private void RemoveSection(DealCreationSection section)
 {
     section.PropertyChanged += Section_PropertyChanged;
     _sections.Remove(section);
     SubmitCommand.RaiseCanExecuteChanged();
 }
Exemplo n.º 4
0
 private void AddSection()
 {
     var section = new DealCreationSection();
     section.RemoveSectionCommand = new DelegateCommand<DealCreationSection>(RemoveSection);
     section.PropertyChanged += Section_PropertyChanged;
     _sections.Add(section);
 }
Exemplo n.º 5
0
 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();
 }