Beispiel #1
0
        private void ToolButtonLoadData_Click(object sender, EventArgs e)
        {
            // do stuff based on active tab
            switch (tabControlMain.SelectedTab.Name)
            {
            case "tabPageEntList":
                EntityListControl.LoadData();
                break;

            case "tabPageEntDropdown":
                EntityDropdown.LoadData();
                break;

            case "tabPageAttrList":
                AttribListControl.ClearData();
                EntityDropdownAttribList.LoadData();

                break;

            case "tabPageAttrDropDown":
                AttributeDropdownBase.ClearData();
                EntityDropdownAttribs.LoadData();

                break;

            case "tabPageSolution":
                SolutionDropdown.LoadData();
                break;

            case "tabPageViewsDropdown":
                ViewDropdown.ClearData();
                EntityDropdownViews.LoadData();
                break;

            case "tabPageGlobalOptSets":
                GlobalOptionSetList.LoadData();
                break;
            }
        }