Esempio n. 1
0
        public void LoadControlsValue()
        {
            cbb.Items.Clear();
            cbb.SelectedIndex = -1;
            switch (mode)
            {
            case "addictive": {
                DataControls.LoadComboBoxData(cbb, DataDefinition.GetAddictive_Status(), "addname", "addcode", "");
                lblText.Text = "กลุ่ม";
            } break;

            default: {
                DataControls.LoadComboBoxData(cbb, DataDefinition.Getkptclass(), "kptclass", "kptcode", "");
                lblText.Text = "หลักสูตร";
            } break;
            }
            lblcountkptclass.Text = "";
            lblcountsearch.Text   = "";
        }