Esempio n. 1
0
 public NewTransactionViewModel(Page page, User user) : base(page)
 {
     Name  = user.Name;
     data  = new DataTransaction();
     Title = "New Transaction";
     UpdateBalance();
 }
Esempio n. 2
0
 public MainPageViewModel(Page page) : base(page)
 {
     Title        = "My transactions";
     data         = new DataTransaction();
     Transactions = new ObservableRangeCollection <TransactionViewModel>();
     Balance      = UserInfo.Balance;
 }
Esempio n. 3
0
 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();
 }
Esempio n. 4
0
 public UsersListViewModel(Page page) : base(page)
 {
     Title = "Select User";
     data  = new DataTransaction();
 }