コード例 #1
0
        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;
                }
            });
        }