public AreaTextureViewModel(IServiceModelTexture service)
            : this()
        {
            _service = service;
            service.GetData(
                (item, error) =>
            {
                if (error != null)
                {
                    return;
                }

                SelectedAreaTextures = (AreaTextures)item;
            });
        }
示例#2
0
        public SelectedTextureList(IServiceModelTexture service)
            : this()
        {
            _service = service;
            service.GetData(
                (item, error) =>
            {
                if (error != null)
                {
                    return;
                }

                var selected = (AreaTextures)item;
                if (selected != null)
                {
                    List = selected.List;
                }
            });
        }