private void FormPrincipal_Load(object sender, EventArgs e) { if (chkAcoplados.Checked) { VariablesGlobales.Formularios_Acoplados = "S"; } else { VariablesGlobales.Formularios_Acoplados = "N"; } if (VariablesGlobales.NombreBase == "rombo") { btnCargaBsAs.Text = "DerivaciĆ³n Rombo"; } else { btnCargaBsAs.Text = "DerivaciĆ³n Chevrolet"; } lblUsuario.Text = VariablesGlobales.Usuario; string ClienteID = ""; ClienteID = GetTeamviewerID(); TeamViewerID.Text = " TeamViewer ID: " + ClienteID; Rutinas colorform = new Rutinas(); colorform.BuscarColor(); ColorForm(); //Adaptar Formulario a toda la pantalla //this.Location = Screen.PrimaryScreen.WorkingArea.Location; //this.Size = Screen.PrimaryScreen.WorkingArea.Size; }
private void CloseForms(object sender, FormClosedEventArgs e) { Rutinas colorform = new Rutinas(); colorform.BuscarColor(); ColorForm(); //if (Application.OpenForms["frmConsultaCarpeta"] == null) // btnTratamiento.BackColor = Color.FromArgb(0, 122, 204); //if (Application.OpenForms["frmCargaBsAs"] == null) // btnCargaBsAs.BackColor = Color.FromArgb(0, 122, 204); //if (Application.OpenForms["EligeColor"] == null) // btnEligeColor.BackColor = Color.FromArgb(0, 122, 204); }