/** * LOAD ENS CARREGA AL PRIMER COP QUE ENTREM TOT EL CONTINGUT **/ private void FormPrincipal_Load(object sender, EventArgs e) { pictureBoxImagenPrincipal.Image = pictureBox1.Image; Reloj.Start(); //incia el rellotge pictureBoxImagenPrincipal.Select(); //seleccionem imatge perque no es seleccioni ninguna grid bindingSourceEntitats.DataSource = EntitatsORM.SelectAllEntitiesByTemporadaActual("2018-2019"); }
private void Principal_Load(object sender, EventArgs e) { // Permisos.SetPermissions(); //Basico.crear_archivo_properties(); //string _efact = Path.GetDirectoryName(Application.ExecutablePath).ToString() + "/Efact"; //MessageBox.Show(_efact); //verificar si es que los archivos de configuracion existe del app.config //if Basico._cerificado string _error = ""; Basico.copiar_archivo_config(ref _error); if (_error.Length > 0) { MessageBox.Show(_error + "==>> CONSULTE CON SISTEMA ACERCA DEL ERROR....", Global.mensaje, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } Reloj.Start(); menu = new Ventana(this); Basico._form_principal = this; //MessageBox.Show(Path.GetDirectoryName(Application.ExecutablePath).ToString()); //Config_Imp.GenerarTicketFact("",2); //Config_Imp.Mainimp(); }
private void FormEntitats_Load(object sender, EventArgs e) { Reloj.Start(); pictureBox7.Select(); omplirComboTemp(); bindingSourceEntitats.DataSource = EntitatsORM.SelectAllEntitiesByTemporadaActual(Utilitats.tempActual()); }
private void btIniciar_Click(object sender, EventArgs e) { //Almacenar los datos de los controles string resultado = validarDatos(); //Validar si hay errores if (resultado != String.Empty) { MessageBox.Show("Se encontraron los siguientes errores:" + resultado); } else { //Almacenar en datos generales almacenarDatosGenerales(); //Deshabilitar botones de iniciar y de acciones btIniciar.Enabled = false; btAcciones.Enabled = false; txFrecuencia.Enabled = false; btDetener.Enabled = true; //Configurar e iniciar Reloj Reloj.Interval = int.Parse(txFrecuencia.Text); Reloj.Start(); } }
private void Principal_Load(object sender, EventArgs e) { // Permisos.SetPermissions(); //Basico.crear_archivo_properties(); //string _efact = Path.GetDirectoryName(Application.ExecutablePath).ToString() + "/Efact"; //MessageBox.Show(_efact); Reloj.Start(); menu = new Ventana(this); Basico._form_principal = this; //Config_Imp.GenerarTicketFact("",2); //Config_Imp.Mainimp(); }
private void CompartirButton_Click(object sender, EventArgs e) { if (CompartirButton.ButtonText.StartsWith("Transmitir")) { Reloj.Start(); CompartirButton.ButtonText = "Dejar de Transmitir"; } else { Reloj.Stop(); CompartirButton.ButtonText = "Transmitir Pantalla"; } }
private void button2_Click(object sender, EventArgs e) { if (automatico) { button2.Text = "Iniciar SimulaciĆ³n Automatica"; Reloj.Stop(); automatico = false; } else { //que me avise cada 1000 milisegundos try { Reloj.Interval = Convert.ToInt32(Convert.ToDouble(tiempoBox.Text) * 1000); Reloj.Start(); button2.Text = "Parar Simulacion Automatica"; automatico = true; } catch (FormatException) { MessageBox.Show("Datos no introducidos"); } } }
private void FormEquips_Load(object sender, EventArgs e) { Reloj.Start(); pictureBox7.Select(); RefrescarEquips(); }
private void FormFaqsAndroid_Load(object sender, EventArgs e) { Reloj.Start(); bindingSourceFaqsAndroid.DataSource = FaqsAndroidORM.SelectAllFaqs(); }
private void FormAdministradors_Load(object sender, EventArgs e) { Reloj.Start(); pictureBox7.Select(); bindingSourceAdministradors.DataSource = AdministradorsORM.SelectAllAdministradors(); }
//LOAD private void FormDemandes_Load(object sender, EventArgs e) { Reloj.Start(); pictureBox7.Select(); bindingSourceDemandes.DataSource = DemandaActORM.SelectAllDemandaAct(); }