Example #1
0
 public NewAcmaSchemaObjectViewModel(Window window, AcmaSchemaObjectsViewModel parentVM)
     : base()
 {
     this.Name     = null;
     this.parentVM = parentVM;
     this.Commands.AddItem("Create", t => this.Create(window), t => this.CanCreate());
 }
Example #2
0
        public AcmaSchemaObjectViewModel(AcmaSchemaObjectClass model, AcmaSchemaObjectsViewModel parentVM)
            : base(model)
        {
            this.Commands.AddItem("DeleteObjectClass", t => this.DeleteObjectClass());
            this.model    = model;
            this.parentVM = parentVM;

            this.Mappings       = new AcmaSchemaMappingsViewModel(this.model.MappingsBindingList, this.model);
            this.ShadowLinks    = new AcmaSchemaShadowObjectLinksViewModel(this.model.ShadowLinksBindingList, this.model);
            this.ReferenceLinks = new AcmaSchemaReferenceLinksViewModel(this.model.ReferenceLinksBindingList, this.model);

            this.IgnorePropertyHasChanged.Add("DisplayName");
        }
Example #3
0
 private BitmapSource GetIcon(AcmaSchemaObjectsViewModel item)
 {
     return(new BitmapImage(new Uri("pack://application:,,,/Lithnet.Acma.Presentation;component/Resources/ObjectClasses.png", UriKind.Absolute)));
 }