コード例 #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     ParameterDialogFix dialog = new ParameterDialogFix();
     if (dialog.ShowDialog() == DialogResult.OK)
     {
         this.listView1.Items.Add(this.method_0(dialog.method_1()));
     }
 }
コード例 #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (this.listView1.SelectedItems.Count != 0)
     {
         ListViewItem item = this.listView1.SelectedItems[0];
         ParameterDialogFix dialog = new ParameterDialogFix();
         dialog.method_2((XmlCmdParameter)item.Tag);
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             this.method_1(item, dialog.method_1());
         }
     }
 }