예제 #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (lstProductRecords.SelectedItems.Count > 0)
            {
                ListViewItem     selectedItem  = lstProductRecords.SelectedItems[0];
                clsProductRecord productRecord = (clsProductRecord)selectedItem.Tag;

                frmAddProductRecord showForm = new frmAddProductRecord(this, productRecord);
                showForm.Show();
            }
        }
예제 #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddProductRecord showForm = new frmAddProductRecord(this, null);

            showForm.Show();
        }