private void userToolStripMenuItem_Click(object sender, EventArgs e) { FormUser objFormUser = new FormUser(); this.Hide(); objFormUser.Show(); }
public User(ConecDBmySql dataBase, FormUser Pantala) { this.pantala = Pantala; this.DataBase = dataBase; this.dataTablaUser = new DataTable(); String consulta = "select id_cedulaEmpleado,nomUser as User,claveUser as Clave,titulo as Titulo,id_privilegios " + "from tb_user, tb_previlegios where tb_user.id_privilegios = tb_previlegios.id_previlegios;"; this.DataBase.GetDataTabla(consulta, this.dataTablaUser); if (this.DataBase.Error != null) { MessageBox.Show(this.DataBase.Error); this.pantala.Close(); } }
public FormMain() { InitializeComponent(); this.user = new FormUser(this); }