private void aeroportosToolStripMenuItem_Click(object sender, EventArgs e) { FrmAeroportos aeroportos = FrmAeroportos.getInstance(); aeroportos.MdiParent = this; aeroportos.Show(); }
public static FrmAeroportos getInstance() { if (instance == null) { instance = new FrmAeroportos(); } return instance; }
private void FrmAeroportos_FormClosed(object sender, FormClosedEventArgs e) { instance = null; }