private void btnAccount_Click(object sender, EventArgs e) { sender = btnAccount; FormAccount fra = new FormAccount(); fra.usersBindingSource.Filter = "id_user = " + idCur; OpenChildForm(fra, sender); }
private void lblName_Click(object sender, EventArgs e) { FormAccount fra = new FormAccount(); fra.usersBindingSource.Filter = "id_user = " + idCur; fra.ShowDialog(); if (panelHeader.Visible) { LoadName(); } }