Пример #1
0
        private async Task AddWireframe()
        {
            var viewModel = new WireframeDetailViewModel(new WireframeViewModel(), wireframeStore, pageService);

            viewModel.WireframeAdded += (source, wireframe) => {
                Wireframes.Add(new WireframeViewModel(wireframe));
            };

            await pageService.PushAsync(new WireframeAddPage(viewModel));
        }
Пример #2
0
        private async Task LoadData()
        {
            if (isDataLoaded)
            {
                return;
            }

            var wireframes = await wireframeStore.GetAllWirefames();

            foreach (var wireframe in wireframes)
            {
                Wireframes.Add(new WireframeViewModel(wireframe));
            }

            isDataLoaded  = true;
            allWireframes = Wireframes;
        }