Esempio n. 1
0
    protected void convertButton_Click(object sender, EventArgs e)
    {
        //tabs
        tabs_list = new HtmlGenericControl("ul");
        tabs_list.Attributes["class"] = "nav nav-tabs";
        tabs_list.Attributes.Add("role", "tablist");
        tabs_panel.Controls.Add(tabs_list);

        //tabs-content
        tabsContent = new HtmlGenericControl("div");
        tabsContent.Attributes["class"] = "tab-content";
        tabs_panel.Controls.Add(tabsContent);

        ServiceReference1.ServiceClient translator = new ServiceReference1.ServiceClient();
        String language = Thread.CurrentThread.CurrentUICulture.Name;

        System.Diagnostics.Debug.WriteLine(language);
        ArrayList serviceTabs = translator.getTabs(number.Text, language);
        Boolean   firstSet    = false;

        for (int i = 0; i < serviceTabs.Count; i++)
        {
            if (serviceTabs[i].GetType() == typeof(ArrayList))
            {
                if (arrayListTreatment(serviceTabs[i], firstSet))
                {
                    firstSet = true;
                }
            }
        }
    }