Beispiel #1
0
        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;
 }
Beispiel #3
0
 public static FrmAviao getInstance()
 {
     if (instance == null)
     {
         instance = new FrmAviao();
     }
     return(instance);
 }
 private void FrmAviao_FormClosed(object sender, FormClosedEventArgs e)
 {
     instance = null;
 }
Beispiel #5
0
 private void FrmAviao_FormClosed(object sender, FormClosedEventArgs e)
 {
     instance = null;
 }