private void Consig_Click(object sender, EventArgs e) { if (consignar == null) { consignar = new VntConsignar(); consignar.FormClosed += new FormClosedEventHandler(Consignar_FormClosed); consignar.Show(); this.Hide(); } else { consignar.Activate(); } }
void Consignar_FormClosed(object sender, EventArgs e) { consignar = null; }