private void button2_Click(object sender, EventArgs e)
 {
     using (ParametersEditor dialog = new ParametersEditor(parameters))
     {
         dialog.ShowDialog();
     }
     UpdateScript();
 }
示例#2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedIndices.Count == 0)
            {
                return;
            }
            ContractParameter parameter = (ContractParameter)listView1.SelectedItems[0].Tag;

            using (ParametersEditor dialog = new ParametersEditor((IList <ContractParameter>)parameter.Value))
            {
                dialog.ShowDialog();
                listView1.SelectedItems[0].SubItems["value"].Text = parameter.ToString();
                textBox1.Text = listView1.SelectedItems[0].SubItems["value"].Text;
            }
        }