private void Label_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { AccountInterface.Visibility = Visibility.Visible; AccountInterface.init(accounts, ref current, accName, chain, (string)Environment.CurrencyType, UpdateBalance, updateCurrent); AccountInterface.AccAddWindow.Visibility = Visibility.Hidden; ContactInterface.Visibility = Visibility.Hidden; }
private void Label_MouseLeftButtonUp_3(object sender, MouseButtonEventArgs e) { SendInterface.Visibility = Visibility.Hidden; AccountInterface.Visibility = Visibility.Hidden; AccountInterface.end(); ContactInterface.Visibility = Visibility.Visible; ContactInterface.init(onSendTx, chain); }
private void Label_MouseLeftButtonUp_2(object sender, MouseButtonEventArgs e) { UpdateBalance(); SendInterface.Visibility = Visibility.Hidden; AccountInterface.Visibility = Visibility.Hidden; AccountInterface.end(); ContactInterface.Visibility = Visibility.Hidden; }
public IActionResult AccountDashboard(int account_number) { var database = new Database(); var session = Request.Cookies["SESSION_ID"]; ProfileInterface Verified = database.VerifySession(session); var username = Verified.username; ViewBag.Title = "Account Dashboard"; ViewBag.user_header = username; var number = account_number; var customer_served = database.getCurrentCustomer(session); AccountInterface account = database.getAccount(number, customer_served); ViewBag.account = account; switch (Verified.profile_type) { case ProfileInterface.ProfileType.ADMIN: ViewBag.user_role = "Admin"; break; case ProfileInterface.ProfileType.TELLER: ViewBag.user_role = "Teller"; break; case ProfileInterface.ProfileType.CUSTOMER: ViewBag.user_role = "User"; break; } List <TransactionInterface> transactions = database.ListTransactions(account.accountNumber()); foreach (TransactionInterface transaction in transactions) { account.addTransaction(transaction); } ViewBag.account_type = "Unknown"; switch (account.getAccountType()) { case AccountType.CHECKING: ViewBag.account_type = "Checking"; break; case AccountType.MONEY_MARKET: ViewBag.account_type = "Money Market"; break; case AccountType.MORTGAGE: ViewBag.account_type = "Mortgage"; break; case AccountType.CREDIT: ViewBag.account_type = "Credit"; break; case AccountType.SAVINGS: ViewBag.account_type = "Savings"; break; } return(View()); }
/// <summary> /// 构造函数 /// </summary> /// <param name="client">操作器</param> public EntityInterfaces(Client client) { Account = new AccountInterface(client); Comments = new CommentInterface(client); Common = new CommonInterface(client); Favorites = new FavoriteInterface(client); Friendships = new FriendshipInterface(client); Search = new SearchInterface(client); ShortUrl = new ShortUrlInterface(client); Statuses = new StatusInterface(client); Suggestions = new SuggestionInterface(client); Tags = new TagInterface(client); Trends = new TrendInterface(client); Users = new UserInterface(client); }
public AccountController(AccountInterface accountReposite, IOptions <AppSettings> appSettings) { _context = accountReposite; _appSettings = appSettings.Value; }
public void addaccount(AccountInterface a) { banklist.Add(a); }
public override void __init__() { instance = this; Event.fireOut("onLoginSuccessfully", new object[] { KBEngineApp.app.entity_uuid, id, this }); }