private void OnTypeChanged(Object sender, TypeChangedEventArgs e)
        {
            var original    = _value.Token;
            var replacement = e.NewToken;

            Value = Wrap(replacement, _container);
            _container.Replace(original, replacement);
        }
Exemple #2
0
 private void TypeChangedHandler(object sender, TypeChangedEventArgs args)
 {
     if (Type != args.Type)
     {
         int index = Connections.IndexOf(sender as OperatorPart);
         EmitTypeChangedEvent(args.Type);
     }
     else if (_type == FunctionType.Generic)
     {
         EmitTypeChangedEvent(args.Type); // in case of generic we need to propagate this event further
     }
 }
Exemple #3
0
 private void BookingViewModel_StayTypeChanged(object sender, TypeChangedEventArgs e)
 {
     PopulateDetailsPreview();
 }