public AddUsersPage(Wallet parentWallet, WalletPage walletPage)
        {
            InitializeComponent();
            wallet            = parentWallet;
            this.parentWallet = walletPage;
            Lister.AddNode(Homepage.Instance.Account, Homepage.Instance.Account.AccountName, false);

            foreach (var walletUserData in Server.GetUsersOfWallet(wallet.Guid))
            {
                if (walletUserData.UserName == Homepage.Instance.Account.UserName)
                {
                    continue;
                }

                var user = Server.GetAccountData(walletUserData.UserName);
                Lister.AddNode(user, user.AccountName);
            }
        }
        private void AddUserBox_OnKeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key != Key.Enter)
            {
                return;
            }
            var account = Server.GetAccountData(AddUserBox.Text);

            if (account is null || Lister.GetDataList <AccountData>().Contains(account))
            {
                if (!(FindResource("BlinkNoUser") is Storyboard blink))
                {
                    return;
                }
                Storyboard.SetTarget(blink, AddUserBox);
                blink.Begin();
                return;
            }

            Lister.AddNode(account, account.AccountName);
            AddUserBox.Text = "";
        }
 public NewWallet()
 {
     InitializeComponent();
     Lister.BorderColor = Colors.LightGray;
     Lister.AddNode(Homepage.Instance.Account, Homepage.Instance.Account.AccountName, false);
 }