Exemplo n.º 1
0
        //private void obtenerTema_Completed(object sender, TalentosReference.obtenerTemaActualCompletedEventArgs e)
        //{
        //    TalentosReference.ParametroBE objParametroBE = new Talentos_Master.TalentosReference.ParametroBE();
        //    objParametroBE = e.Result;

        //    ResourceDictionary rd = null;

        //    if (objParametroBE.value.Equals("Selva"))
        //    {
        //        rd = new temas.temaSelva.Tema();
        //    }
        //    else if (objParametroBE.value.Equals("Burbujas"))
        //    {
        //        rd = new temas.temaBurbujas.Tema();
        //    }
        //    else
        //    {
        //        rd = new temas.temaTrabajo.Tema();
        //    }

        //    this.Resources = rd;

        //    this.RootVisual = new MainPage();

        //}

        private void obtenerTema_Completed(object sender, TalentosReference.SkinActivoObtenerCompletedEventArgs e)
        {
            TalentosReference.SkinBE skinbe = new Talentos_Master.TalentosReference.SkinBE();
            skinbe = e.Result;

            SessionActual      = Session.getInstance();
            SessionActual.skin = skinbe;

            ResourceDictionary rd = null;

            if (skinbe.Descripcion.Equals("Selva"))
            {
                rd = new temas.temaSelva.Tema();
            }
            else if (skinbe.Descripcion.Equals("Burbujas"))
            {
                rd = new temas.temaSelva.Tema();
                // rd = new temas.temaBurbujas.Tema();
            }
            else
            {
                rd = new temas.temaSelva.Tema();
                //rd = new temas.temaTrabajo.Tema();
            }

            this.Resources = rd;

            this.RootVisual = new MainPage();
        }
        void EfectoBuzon3()
        {
            ResourceDictionary rd = new temas.temaSelva.Tema();

            this.Resources = rd;

            imgBuzon3.Style = (Style)this.Resources["GlassBorderStyleMarron"];
        }
        private void imgBuzon3_MouseEnter(object sender, MouseEventArgs e)
        {
            ResourceDictionary rd = new temas.temaSelva.Tema();

            this.Resources = rd;

            imgBuzon3.Style = (Style)this.Resources["GlassBorderStyleBrillo"];

            LinearGradientBrush blanco = new LinearGradientBrush();
            GradientStop        o1     = new GradientStop();

            o1.Color = Colors.White;
            blanco.GradientStops.Add(o1);

            txt13.Foreground = blanco;
            txt23.Foreground = blanco;
            txt33.Foreground = blanco;
        }
        void QuitarEfectoBuzon3()
        {
            ResourceDictionary rd = new temas.temaSelva.Tema();

            this.Resources = rd;

            imgBuzon3.Style = (Style)this.Resources["GlassBorderStyle"];

            LinearGradientBrush blanco = new LinearGradientBrush();
            GradientStop        b1     = new GradientStop();

            b1.Color = Colors.White;
            blanco.GradientStops.Add(b1);

            txt13.Foreground = blanco;
            txt23.Foreground = blanco;
            txt33.Foreground = blanco;
        }
        private void imgBuzon1_MouseLeave(object sender, MouseEventArgs e)
        {
            if (!SessionActual.Buzon1.activo)
            {
                ResourceDictionary rd = new temas.temaSelva.Tema();
                this.Resources = rd;

                imgBuzon1.Style = (Style)this.Resources["GlassBorderStyle"];

                LinearGradientBrush blanco = new LinearGradientBrush();
                GradientStop        o1     = new GradientStop();
                o1.Color = Colors.White;
                blanco.GradientStops.Add(o1);

                txt11.Foreground = blanco;
                txt21.Foreground = blanco;
                txt31.Foreground = blanco;
            }
        }