public Romanero_Vista() { InitializeComponent(); SQLiteManager.CheckFolders(); _cooperado = new Cooperado_Vista(); SetearSegundaPantalla(); SetearFechaHora(); SetearNombrePlanta(); _cooperado.PlantaInfo.Text = Nombre_Planta; PlantaInfo.Text = Nombre_Planta; WindowState = FormWindowState.Minimized; //SetStartUp(); OracleManager.SetConfiguracionDePuerto(PuertoSerial, _MarcasUsuario.ID_Planta, 2); TopMost = true; _cooperado.TopMost = true; try { PuertoSerial.Open(); } catch (Exception _error) { MessageBox.Show("Configuración del Serial Incorrecta. Error: " + _error.Message, "ERROR FATAL", MessageBoxButtons.OK, MessageBoxIcon.Error); } //EscribirEnLog(GetExecutingDirectoryName()); //PowerModeChangedEventHandler += new SystemEvents_PowerModeChanged(); }