public NewTransactionViewModel(Page page, User user) : base(page) { Name = user.Name; data = new DataTransaction(); Title = "New Transaction"; UpdateBalance(); }
public MainPageViewModel(Page page) : base(page) { Title = "My transactions"; data = new DataTransaction(); Transactions = new ObservableRangeCollection <TransactionViewModel>(); Balance = UserInfo.Balance; }
public TransactionViewModel(Page page, TransactionToken transaction) : base(page) { Id = transaction.Id; Date = transaction.Date; UserName = transaction.UserName; Amount = transaction.Amount; Balance = transaction.Balance; Title = "Transaction № " + Id.ToString(); data = new DataTransaction(); UpdateBalance(); }
public UsersListViewModel(Page page) : base(page) { Title = "Select User"; data = new DataTransaction(); }