private void lvHeaderSetList_DoubleClick(object sender, EventArgs e)
        {
            string         strHeaderSetID;
            cls_EDC_Header hsTemp = new cls_EDC_Header();

            if (lvHeaderSetList.SelectedItems.Count == 0)
            {
                MessageBox.Show("Please select the header set first!", "Error");
                return;
            }

            strHeaderSetID = lvHeaderSetList.SelectedItems[0].Text.Trim();

            int i = 0;

            foreach (cls_EDC_Header hs in this.hsList.head_set_list)
            {
                if (hs.set_name == strHeaderSetID)
                {
                    hsTemp = this.hsList.head_set_list[i];
                    break;
                }
                i++;
            }

            frmEditEDCHeader frm = new frmEditEDCHeader(SetHeaderSetInfo, CheckDuplicateHeaderSet, hsTemp);

            frm.Owner = this;
            frm.ShowDialog();

            hsTemp = null;

            RefreshHeaderSetList();
            lvHeaderSetList.Focus();
        }
        private void btnAddHeaderSet_Click(object sender, EventArgs e)
        {
            frmEditEDCHeader frm = new frmEditEDCHeader(SetHeaderSetInfo, CheckDuplicateHeaderSet, false);

            frm.Owner = this;
            frm.ShowDialog();

            delgEDCHeaderSetList(this.hsList);
            RefreshHeaderSetList();
        }