Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 private BitmapSource GetIcon(AcmaSchemaAttributesViewModel item)
 {
     return(new BitmapImage(new Uri("pack://application:,,,/Lithnet.Acma.Presentation;component/Resources/Attribute.png", UriKind.Absolute)));
 }