Beispiel #1
0
        public async Task Initialize()
        {
            var GridProperty = await ViewModel.CreateGrid(MainGrid, Config);

            var summaryField = new Summary(Config, MObject);

            SummaryField = summaryField;
            Summary.Navigate(summaryField);
            FieldList = await ViewModel.CreateFrames();

            foreach (var frame in FieldList)
            {
                frame.MouseDown += ShowDetails;
                MainGrid.Children.Add(frame);
            }
            FieldViewList = await ViewModel.CreateFieldView(MObject, this, Config);

            await new CardViewModel().SetFrames(FieldList, FieldViewList);
            MObject.RefreshSum();
        }