Exemple #1
0
 public Menu(LoginWindow loginWindow)
 {
     this.loginWindow = loginWindow;
     InitializeComponent();
     //Timer_RefreshMenu.
     mostrarSaldoSiEsCliente();
 }
 public ComprarGiftCard(LoginWindow login)
 {
     InitializeComponent();
     this.montoMinimo = 10;
     this.montoMaximo = 50;
     this.labelMonto.Text = "El monto\nno puede ser\nmenor a "+this.montoMinimo.ToString()+"\nni mayor a "+this.montoMaximo.ToString()+".";
     this.TxtBoxUsuarioDestino.Enabled = false;
     this.login = login;
     saldo = login.UsuarioActivo.DatosCliente.Saldo.ToString();
     if (String.IsNullOrEmpty(saldo))
         LblSaldo.Text = "0";
     else
         LblSaldo.Text = saldo;
 }
Exemple #3
0
 public ComprarGiftCard(LoginWindow login)
 {
     InitializeComponent();
     this.montoMinimo     = 10;
     this.montoMaximo     = 50;
     this.labelMonto.Text = "El monto\nno puede ser\nmenor a " + this.montoMinimo.ToString() + "\nni mayor a " + this.montoMaximo.ToString() + ".";
     this.TxtBoxUsuarioDestino.Enabled = false;
     this.login = login;
     saldo      = login.UsuarioActivo.DatosCliente.Saldo.ToString();
     if (String.IsNullOrEmpty(saldo))
     {
         LblSaldo.Text = "0";
     }
     else
     {
         LblSaldo.Text = saldo;
     }
 }
Exemple #4
0
 public ComprarCupon(LoginWindow login)
 {
     this.login = login;
     InitializeComponent();
     InitializeCuponDataGrid();
 }
Exemple #5
0
 public ABMRol(LoginWindow loginWindow)
 {
     InitializeComponent();
 }
Exemple #6
0
 public DevolverCupon(LoginWindow login)
 {
     InitializeComponent();
     this.login = login;
     txtBox_Fecha.Text = AdministradorConfiguracion.obtenerFecha().ToShortDateString();
 }
Exemple #7
0
 public CargarCredito(LoginWindow loginWindow)
 {
     this.loginWindow = loginWindow;
     InitializeComponent();
     initializeWindow();
 }
Exemple #8
0
 public DevolverCupon(LoginWindow login)
 {
     InitializeComponent();
     this.login        = login;
     txtBox_Fecha.Text = AdministradorConfiguracion.obtenerFecha().ToShortDateString();
 }
Exemple #9
0
 public ABMRol(LoginWindow loginWindow)
 {
     InitializeComponent();
 }
 public CargarCredito(LoginWindow loginWindow)
 {
     this.loginWindow = loginWindow;
     InitializeComponent();
     initializeWindow();
 }