private void BeginLoading()
        {
            IconRotation.Begin();

            pgrLoading.IsActive   = true;
            pvtMain.IsEnabled     = false;
            rtpLoading.Visibility = Visibility.Visible;
        }
Пример #2
0
 public BankPage()
 {
     resources = ResourceLoader.GetForCurrentView();
     InitializeComponent();
     viewModel = new BankPageViewModel(new BankAccountInfoService(), new TransactionService(), new CategoryService(), ResourceLoader.GetForCurrentView())
     {
         BeforeSync = () =>
         {
             IconRotation.Begin();
             TransactionsAccordion.UnselectAll();
         },
         AfterSync = () =>
         {
             IconRotation.Stop();
             RecalculateLineGraphInterval();
             SetStyles();
         }
     };
     DataContext = viewModel;
 }
Пример #3
0
        public WalletPage()
        {
            resources = ResourceLoader.GetForCurrentView();
            InitializeComponent();
            viewModel = new WalletPageViewModel(new BankAccountInfoService(), new TransactionService(), new CategoryService(), new WalletCategoryService(), new WalletBankService(), new CurrencyService(), ResourceLoader.GetForCurrentView())
            {
                BeforeSync = () =>
                {
                    IconRotation.Begin();
                    TransactionsAccordion.UnselectAll();
                },
                AfterSync = () =>
                {
                    IconRotation.Stop();
                    RecalculateLineGraphInterval();
                    SetStyles();
                }
            };
            DataContext = viewModel;

            TimeRangeComboboxCat.ItemsSource   = Enum.GetValues(typeof(TimeRange)).Cast <TimeRange>();
            TimeRangeComboboxTrans.ItemsSource = Enum.GetValues(typeof(TimeRange)).Cast <TimeRange>();
        }