コード例 #1
0
        public FrmAddProduct()
        {
            InitializeComponent();
            cmbCategroyName.DataSource    = category.CategorySearch("");
            cmbCategroyName.ValueMember   = "CatID";
            cmbCategroyName.DisplayMember = "CatName";

            cmbActiveMaterial.DataSource    = active.ActiveMaterialSearch("");
            cmbActiveMaterial.ValueMember   = "AM_ID";
            cmbActiveMaterial.DisplayMember = "AM_Name";

            cmbScientificName.DataSource    = scientific.ScientificNameSearch("");
            cmbScientificName.ValueMember   = "Sn_ID";
            cmbScientificName.DisplayMember = "Sn_Name";
        }
コード例 #2
0
 public FrmScientificNamesManagement()
 {
     InitializeComponent();
     dgvScientificNames.DataSource = scientific.ScientificNameSearch("");
 }