void App_Startup(object sender, StartupEventArgs e) { presentacion Presentacion_FEI = new presentacion(); Presentacion_FEI.Show(); //if (!isPermited()) ////if(false) // Temporal hasta arreglar el activador //{ // clsBaseMensaje.cs_pxMsgEr("ERR20", ""); // isInitialized = false; // System.Windows.Application.Current.Shutdown(); //} //else //{ // //Buscar la ruta de almacen de archivos de FEI. // string ruta = new clsRegistry().Read("RUTA"); // if (ruta == null) // {//En caso no exista mostrar el formulario de seleccion de ruta. // frmSelect f = new frmSelect(); // if (f.ShowDialog() == DialogResult.OK) // { // //Si ingresa la ruta mostrar el inicion de sesion. // //InicioSesion inicio = new InicioSesion(); // //inicio.Show(); // presentacion Presentacion_FEI = new presentacion(); // Presentacion_FEI.Show(); // } // } // else // { // //Iniciar configuracion actual y mostrar inicio de sesion. // clsBaseConfiguracion configuracion = new clsBaseConfiguracion(); // //Mostrar formulario de Inicio de Sesion. // //InicioSesion inicio = new InicioSesion(); // //inicio.Show(); // presentacion Presentacion_FEI = new presentacion(); // Presentacion_FEI.Show(); // } //} }
private void Application_Startup(object sender, StartupEventArgs e) { presentacion presentacion = new presentacion(); presentacion.Show(); }