Beispiel #1
0
        public TypeToImageService()
        {
            ImageMappings = new ObservableCollection <ImageTypeRecord>();

            Add    = new DelegateCommand(AddMapping);
            Edit   = new DelegateCommand(EditMapping, e => selectedIndex != -1);
            Remove = new DelegateCommand(RemoveMapping, e => selectedIndex != -1);

            AddImage    = new AddTypeImageService();
            EditImage   = new EditTypeImageMapping();
            RemoveImage = new RemoveTypeImageMapping();
        }
Beispiel #2
0
        public TypeToImageService()
        {
            ImageMappings = new ObservableCollection<ImageTypeRecord>();

            Add = new DelegateCommand(AddMapping);
            Edit = new DelegateCommand(EditMapping, e => selectedIndex != -1);
            Remove = new DelegateCommand(RemoveMapping, e => selectedIndex != -1);

            AddImage = new AddTypeImageService();
            EditImage = new EditTypeImageMapping();
            RemoveImage = new RemoveTypeImageMapping();
        }