Beispiel #1
0
        private void itemSearchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CloseAllChild();
            frmSearchItem ofrmstk = new frmSearchItem();

            ofrmstk.MdiParent = this;
            ofrmstk.Show();
        }
Beispiel #2
0
        private void btnSearchItem_Click(object sender, EventArgs e)
        {
            frmSearchItem ofrmSearchItem = new frmSearchItem(true);

            ofrmSearchItem.ShowDialog();
            List <string> oItemOIDList = ofrmSearchItem.oItemOIDList;

            if (oItemOIDList != null)
            {
                foreach (string oItemOID in oItemOIDList)
                {
                    dgItemList.Rows.Add();
                    ((DataGridViewComboBoxCell)dgItemList.Rows[dgItemList.Rows.Count - 2].Cells["colItemName"]).Value = oItemOID;
                }
            }
        }