private void OnTypeChanged(Object sender, TypeChangedEventArgs e) { var original = _value.Token; var replacement = e.NewToken; Value = Wrap(replacement, _container); _container.Replace(original, replacement); }
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 } }
private void BookingViewModel_StayTypeChanged(object sender, TypeChangedEventArgs e) { PopulateDetailsPreview(); }