private void Form1_Load(object sender, EventArgs e) { System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("es-AR"); System.Threading.Thread.CurrentThread.CurrentCulture.NumberFormat.NumberDecimalSeparator = "."; if (File.Exists("mydb.cfg")) { try { Conector.leerConfiguracion(); Conector.conectar(); } catch { MessageBox.Show("Error de conexion.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); frmGestionBD fgbd = new frmGestionBD(); fgbd.ShowDialog(); } } else { Conector.crearConfiguracion(); frmGestionBD fgbd = new frmGestionBD(); fgbd.ShowDialog(); } }
private void baseDeDatosToolStripMenuItem_Click(object sender, EventArgs e) { frmGestionBD fgbd = new frmGestionBD(); fgbd.MdiParent = this; fgbd.Show(); }