public NewAcmaSchemaAttributeViewModel(NewAttributeWindow window, AcmaSchemaAttributesViewModel attributesVM) : base() { this.attributesVM = attributesVM; this.Name = null; this.Commands.AddItem("Create", t => this.Create(window), t => this.CanCreate()); this.Commands.AddItem("CreateAndAddNew", t => this.CreateAndAddNew(window), t => this.CanCreate()); this.Type = ExtendedAttributeType.String; this.IsIndexable = true; this.IsIndexableAllowed = true; this.IsMultivaluedAllowed = true; this.ConfigureForAttributeType(); }
private BitmapSource GetIcon(AcmaSchemaAttributesViewModel item) { return(new BitmapImage(new Uri("pack://application:,,,/Lithnet.Acma.Presentation;component/Resources/Attribute.png", UriKind.Absolute))); }