private void btnAdd_Click(object sender, EventArgs e)
        {
            ParameterDialog dlg = new ParameterDialog();

            if (dlg.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            listView1.Items.Add(CreateListViewItem(dlg.CommandParameter));
        }
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count == 0)
            {
                return;
            }

            ListViewItem item = listView1.SelectedItems[0];

            ParameterDialog dlg = new ParameterDialog();

            dlg.CommandParameter = (XmlCmdParameter)item.Tag;
            if (dlg.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            SetCommnadToListViewItem(item, dlg.CommandParameter);
        }