public AttributeViewModel() { event_aggregator = Unity.Container.Resolve <IEventAggregator>(); service_factory = Unity.Container.Resolve <IServiceFactory>(); EntityAttribute = new EntityAttributeWrapper(new EntityAttribute()); BindCommands(); }
public AttributeViewModel() { event_aggregator = ServiceLocator.Current.GetInstance <IEventAggregator>(); service_factory = ServiceLocator.Current.GetInstance <IServiceFactory>(); EntityAttribute = new EntityAttributeWrapper(new EntityAttribute()); BindCommands(); }
private void DoCancel() { EntityAttribute = null; // Close window }