Beispiel #1
0
        private void pilotosToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FrmPilotos pilotos = FrmPilotos.getInstance();

            pilotos.MdiParent = this;
            pilotos.Show();
        }
 public static FrmPilotos getInstance()
 {
     if (instance == null)
     {
         instance = new FrmPilotos();
     }
     return instance;
 }
 public static FrmPilotos getInstance()
 {
     if (instance == null)
     {
         instance = new FrmPilotos();
     }
     return(instance);
 }
 private void FrmPilotos_FormClosed(object sender, FormClosedEventArgs e)
 {
     instance = null;
 }
 private void FrmPilotos_FormClosed(object sender, FormClosedEventArgs e)
 {
     instance = null;
 }