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; } }
private static void AddTransaction(TransactionType type) { TransactionLogic.GoToAddTransaction(type); ((Frame)Window.Current.Content).Navigate(typeof(AddTransaction)); }