private void sairToolStripMenuItem_Click(object sender, EventArgs e) { FrmAviao aviao = FrmAviao.getInstance(); aviao.MdiParent = this; aviao.Show(); }
public static FrmAviao getInstance() { if (instance == null) { instance = new FrmAviao(); } return instance; }
public static FrmAviao getInstance() { if (instance == null) { instance = new FrmAviao(); } return(instance); }
private void FrmAviao_FormClosed(object sender, FormClosedEventArgs e) { instance = null; }