Esempio n. 1
0
        public static void DoNavigation(string tileId)
        {
            switch (tileId)
            {
            case IncomeTile.Id:
                TransactionLogic.GoToAddTransaction(TransactionType.Income);
                ((Frame)Window.Current.Content).Navigate(typeof(AddTransaction));
                break;

            case SpendingTile.Id:
                TransactionLogic.GoToAddTransaction(TransactionType.Spending);
                ((Frame)Window.Current.Content).Navigate(typeof(AddTransaction));
                break;

            case TransferTile.Id:
                TransactionLogic.GoToAddTransaction(TransactionType.Transfer);
                ((Frame)Window.Current.Content).Navigate(typeof(AddTransaction));
                break;
            }
        }
Esempio n. 2
0
 private static void AddTransaction(TransactionType type)
 {
     TransactionLogic.GoToAddTransaction(type);
     ((Frame)Window.Current.Content).Navigate(typeof(AddTransaction));
 }