Exemplo n.º 1
0
        private void iniComboBox()
        {
            ptypeCmb.DataSource = projectCtrl.getProjectTypeList();

            ptypeCmb.DisplayMember = "project_type_name";
            ptypeCmb.ValueMember   = "id";

            this.ptypeCmb.SelectedValue = 1;
        }
Exemplo n.º 2
0
        private void iniComboBox()
        {
            DataTable pTypeList = projectCtrl.getProjectTypeList();

            pTypeList.Rows.Add(new Object[] { 0, "All" });

            ptypeCmb.DataSource = pTypeList;

            ptypeCmb.DisplayMember = "project_type_name";
            ptypeCmb.ValueMember   = "id";

            this.ptypeCmb.SelectedValue = 0;
        }