private void button1_Click(object sender, EventArgs e) { LoginForm menu = new LoginForm(); this.Hide(); menu.ShowDialog(); this.Show(); }
private Compra(LoginForm loginform) { this.InitializeComponent(); this.pasajerosDatatable = new DataTable(); this.paquetesDatatable = new DataTable(); this.loginform = loginform; }
public static Compra getInstance(LoginForm loginform) { if (_instance == null) { _instance = new Compra(loginform); } _instance.loginform = loginform; return _instance; }
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; }
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); } }