public void m_mthSetForm(frmHRPBaseForm p_objBaseForm) { m_objBaseForm = null; for (int i = 0; i < m_cboFormType.GetItemsCount(); i++) { clsDeactiveFormInfo objFormInfo = (clsDeactiveFormInfo)m_cboFormType.GetItem(i); if (objFormInfo.m_intFormID == p_objBaseForm.m_IntFormID) { m_cboFormType.SelectedIndex = i; m_objBaseForm = p_objBaseForm; break; } } m_cboFormType.Enabled = false; m_mthSearch(); }
private void m_cboCommonUseType_SelectedIndexChanged(object sender, System.EventArgs e) { m_blnIsAddNew = true; m_txtCommonUseValue.Text = ""; m_lsvCommonUseValue.Items.Clear(); if (m_cboCommonUseType.GetItemsCount() == 0) { return; } clsCommonUseValue[] objclsCommonUseValue = null; if (m_cboCommonUseType.SelectedItem != null) { m_objDomain.m_lngGetAllCommonUseValue(((clsPublicIDAndName)(m_cboCommonUseType.SelectedItem)).m_strID, out objclsCommonUseValue); } if (objclsCommonUseValue != null) { for (int i = 0; i < objclsCommonUseValue.Length; i++) { ListViewItem lviNew = m_lsvCommonUseValue.Items.Add(objclsCommonUseValue[i].m_strTypeID); lviNew.SubItems.Add(objclsCommonUseValue[i].m_strCommonUseValue); } } clsPublicFunction.s_mthChangeListViewLastColumnWidth(m_lsvCommonUseValue, 11); }