コード例 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            clsAllComponents lcComponent = clsAllComponents.NewComponent(cbType.SelectedItem.ToString());

            lcComponent.tblCategoryName = _Component.Name;

            FrmProduct.DispatchComponentForm(lcComponent);
            if (!string.IsNullOrEmpty(lcComponent.Name))
            {
                refreshFormFromDB(_Component.Name);
                //UpdateComponents();
            }
        }
コード例 #2
0
 private void lstComponents_DoubleClick(object sender, EventArgs e)
 {
     FrmProduct.DispatchComponentForm(lstComponents.SelectedValue as clsAllComponents);
 }