Пример #1
0
        public PurposesPage()
        {
            purposeViewModel = new PurposesViewModel
            {
                PageColor                 = GeneralSettings.CustomColor,
                ContrastColor             = GeneralSettings.ContrastColor,
                PagePadding               = GeneralSettings.CustomPagePadding,
                GeneralVisualItemsSpacing = GeneralSettings.CustomVisualItemsSpacing,
                PurposesImageSource       = "m2.jpg",
                MotivationItemText        = PurposesFromDb.ReturnMotivationItemText(),
                PurposesCollection        = PurposesFromDb.ReturnPurposesCollection()
            };
            BindingContext = purposeViewModel;

            InitializeComponent();
        }
Пример #2
0
 private void RefreshPurposeListAction()
 {
     purposeViewModel.PurposesCollection = PurposesFromDb.ReturnPurposesCollection();
 }