private void button1_Click(object sender, EventArgs e)
 {
     LoginForm menu = new LoginForm();
     this.Hide();
     menu.ShowDialog();
     this.Show();
 }
Esempio n. 2
0
 private Compra(LoginForm loginform)
 {
     this.InitializeComponent();
     this.pasajerosDatatable = new DataTable();
     this.paquetesDatatable = new DataTable();
     this.loginform = loginform;
 }
Esempio n. 3
0
        public static Compra getInstance(LoginForm loginform)
        {
            if (_instance == null) {
                _instance = new Compra(loginform);
            }

            _instance.loginform = loginform;

            return _instance;
        }
Esempio n. 4
0
        public Confirmacion(List<String> detalle, List<int> pasajerosIds, List<int> butacasNumeros, List<int> clientesIds, List<decimal> pesos, Viaje v, Aeronave a, LoginForm loginform)
        {
            this.InitializeComponent();

            this.pasajerosIds = pasajerosIds;
            this.butacasNumeros = butacasNumeros;
            this.clientesIds = clientesIds;
            this.pesos = pesos;
            this.selectedAeronave = a;
            this.selectedViaje = v;

            this.detalleTextbox.Lines = detalle.ToArray();
            this.fillCombos();

            if (loginform == null || loginform.loggedUser == null)
                this.medioDePagoCombo.Enabled = false;
        }
Esempio n. 5
0
        private void loginButton_Click(object sender, EventArgs e)
        {
            this.loginForm = new LoginForm();
            var dr = loginForm.ShowDialog();

            if (dr == DialogResult.Cancel) { //si cierra la ventana
                loginForm.Close();
            }

            if (dr == DialogResult.OK) { //si se loguea
                var loginResult = loginForm.lastLoginResult;
                this.onLogin(loginForm.loggedUser);
            }
        }