private void btnPuestos_Click(object sender, EventArgs e) { foreach (Form frm in Application.OpenForms) { if (frm.Name == "GestionLiquidacionConceptos") { MessageBox.Show("No se pueden gestionar puestos mientras haya liquidaciones en curso."); return; } } PrincipalPuestos screenPuestos = new PrincipalPuestos(this, UsuarioSingleton.Instance._Empresa); screenPuestos.MdiParent = this; btnConceptos.Enabled = false; btnPuestos.Enabled = false; btnLegajos.Enabled = false; comboEmpresas.Enabled = false; screenPuestos.Show(); }
public AñadirPuesto(PrincipalPuestos Puestos, Empresa empresa) { InitializeComponent(); this.puestos = Puestos; this._empresa = empresa; }