Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                FontList.DataSource = FontsData.Fonts;
                FontList.DataBind();
                string sampleText = string.Empty;
                switch (LoremType)
                {
                case "Sagan":
                    sampleText = FontsData.SaganText;
                    break;

                case "Hipster":
                    sampleText = FontsData.HipsterText;
                    break;

                case "Pirate":
                    sampleText = FontsData.PirateText;
                    break;

                default:
                    sampleText = FontsData.LoremText;
                    break;
                }
                FillerText.Text = sampleText;
            }
        }