private static void SetEventosBoton() { MaterialRaisedButton btnContinue = (MaterialRaisedButton)GetAll(formTemp, typeof(MaterialRaisedButton)).Where(a => a.Name == "btnContinuar").FirstOrDefault(); btnContinue.MouseClick += new MouseEventHandler(ConfirmarReserva); Label btnClose = (Label)GetAll(formTemp, typeof(Label)).Where(d => d.Name == "btnCerrar").FirstOrDefault(); btnClose.MouseClick += new MouseEventHandler(CancelarAsientoTotal); btnClose.BackColor = ConstanteColor.GetPrimaryColor(); Label btnMiminizar = (Label)GetAll(formTemp, typeof(Label)).Where(d => d.Name == "btnMiminizar").FirstOrDefault(); btnMiminizar.MouseClick += new MouseEventHandler(MiminizarTeatro); btnMiminizar.BackColor = ConstanteColor.GetPrimaryColor(); Panel pnlPrincipal = (Panel)GetAll(formTemp, typeof(Panel)).Where(d => d.Name == "pnlPrincipal").FirstOrDefault(); pnlPrincipal.BackColor = ConstanteColor.GetPrimaryColor(); Panel pnlSecundary = (Panel)GetAll(formTemp, typeof(Panel)).Where(d => d.Name == "pnlSecundary").FirstOrDefault(); pnlSecundary.BackColor = ConstanteColor.GetSecundaryColor(); MaterialLabel tituloX = (MaterialLabel)GetAll(formTemp, typeof(MaterialLabel)).Where(d => d.Name == "lblTituloTeatro").FirstOrDefault(); tituloX.ForeColor = System.Drawing.Color.White; tiempo = (Label)GetAll(formTemp, typeof(Label)).Where(d => d.Name == "lblTiempo").FirstOrDefault(); }
public void SetStyles() { btnRegresar.BackColor = ConstanteColor.GetPrimaryColor(); }