Exemple #1
0
        public Usuario(CuentaCliente cuenta)
        {
            this.cuenta = cuenta;
            FlujoBotones.AddRange(new BotonOpcion[]
            {
                new BotonOpcion
                {
                    Icono            = FontAwesome.Solid.Search,
                    Anchor           = Anchor.Centre,
                    Origin           = Anchor.Centre,
                    BackgroundColour = FrameworkColour.Blue,
                    Text             = "Consulta",
                    Action           = () => LoadComponentAsync(new ConsultaUsuario(cuenta), this.Push),
                },
                new BotonOpcion
                {
                    Icono            = FontAwesome.Solid.MoneyBill,
                    Anchor           = Anchor.Centre,
                    Origin           = Anchor.Centre,
                    BackgroundColour = FrameworkColour.Blue,
                    Text             = "Retiro",
                    Action           = () => LoadComponentAsync(new RetiroUsuario(cuenta), this.Push),
                },
                new BotonOpcion
                {
                    Icono            = FontAwesome.Solid.Save,
                    Anchor           = Anchor.Centre,
                    Origin           = Anchor.Centre,
                    BackgroundColour = FrameworkColour.Blue,
                    Text             = "Deposito",
                    Action           = () => LoadComponentAsync(new DepositoUsuario(cuenta), this.Push),
                },
                new BotonOpcion
                {
                    Anchor           = Anchor.Centre,
                    Origin           = Anchor.Centre,
                    BackgroundColour = Color4.OrangeRed,
                    Icono            = FontAwesome.Solid.SignOutAlt,
                    Text             = "Salir",
                    Action           = Salir,
                }
            });

            Titulo           = $"Nos alegra tenerte aquí, {cuenta.Nombre.PrimerNombre}";
            ColorFondoTitulo = Color4.MediumSlateBlue;
        }
Exemple #2
0
 public DepositoUsuario(CuentaCliente cuenta)
 {
     Titulo           = "Realiza un deposito";
     ColorFondoTitulo = Color4.MediumSlateBlue;
     this.cuenta      = cuenta;
     FlujoBotones.AddRange(new BotonOpcion[]
     {
         new BotonOpcion
         {
             Icono            = FontAwesome.Solid.User,
             Anchor           = Anchor.Centre,
             Origin           = Anchor.Centre,
             BackgroundColour = FrameworkColour.Blue,
             Text             = "Propia cuenta",
             Action           = () => LoadComponentAsync(new DepositoPropioUsuario(cuenta), this.Push),
         },
         new BotonOpcion
         {
             Icono            = FontAwesome.Solid.Users,
             Anchor           = Anchor.Centre,
             Origin           = Anchor.Centre,
             BackgroundColour = FrameworkColour.Blue,
             Text             = "Otra cuenta",
             Action           = () => LoadComponentAsync(new DepositoCuentaUsuario(cuenta), this.Push),
         },
         new BotonOpcion
         {
             Anchor           = Anchor.Centre,
             Origin           = Anchor.Centre,
             BackgroundColour = Color4.OrangeRed,
             Icono            = FontAwesome.Solid.ArrowCircleLeft,
             Text             = "Regresar",
             Action           = this.Exit,
         }
     });
 }