private void NewListViewItem(DataConvertItem dci)
        {
            ListViewItem lvi = new ListViewItem(new string[] { dci.SourceName, dci.ConvertName, dci.ConvertType });

            lvi.Name = dci.SourceName;

            listView1.Items.Add(lvi);

            lvi.Tag = dci;
        }
        public DataConvertItem Clone()
        {
            DataConvertItem dci = new DataConvertItem();

            dci.SourceName  = SourceName;
            dci.ConvertName = ConvertName;
            dci.ConvertType = ConvertType;

            return(dci);
        }
        private void UpdateListViewItem(DataConvertItem dci)
        {
            ListViewItem lvi = listView1.SelectedItems[0];

            lvi.Name = dci.SourceName;


            lvi.Text             = dci.SourceName;
            lvi.SubItems[1].Text = dci.ConvertName;
            lvi.SubItems[2].Text = dci.ConvertType;

            listView1.Items.Add(lvi);

            lvi.Tag = dci;
        }
        private void tsbNew_Click(object sender, EventArgs e)
        {
            try
            {
                if (Vertify(true) == false)
                {
                    return;
                }

                DataConvertItem dci = new DataConvertItem();

                dci.SourceName  = txtSourceName.Text;
                dci.ConvertName = txtConvertName.Text;
                dci.ConvertType = cbxConvertType.Text;

                NewListViewItem(dci);
            }
            catch (Exception ex)
            {
                MsgBox.ShowException(ex, this);
            }
        }
        private void tsbModify_Click(object sender, EventArgs e)
        {
            try
            {
                if (Vertify(false) == false)
                {
                    return;
                }

                DataConvertItem dci = listView1.SelectedItems[0].Tag as DataConvertItem;

                dci.SourceName  = txtSourceName.Text;
                dci.ConvertName = txtConvertName.Text;
                dci.ConvertType = cbxConvertType.Text;

                UpdateListViewItem(dci);
            }
            catch (Exception ex)
            {
                MsgBox.ShowException(ex, this);
            }
        }