Ejemplo n.º 1
0
 // 편집
 // 체크된것을 위와 같은 체크박스에서 수정해야됨
 private void Macro_Editmacro_Click(object sender, EventArgs e)
 {
     foreach (ListViewItem item in Macro_Macrodata.CheckedItems)
     {
         AddandEdit addandedit = new AddandEdit();
         addandedit.edittxt(Macro_Macrodata.Items[item.Index].SubItems[0].Text, Macro_Macrodata.Items[item.Index].SubItems[1].Text, Macro_Macrodata.Items[item.Index].SubItems[2].Text);
         if (addandedit.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             Macro_Macrodata.Items[item.Index].SubItems[0].Text = addandedit.Time;
             Macro_Macrodata.Items[item.Index].SubItems[1].Text = addandedit.Instruction;
             Macro_Macrodata.Items[item.Index].SubItems[2].Text = addandedit.KeyorCoordinate;
         }
     }
 }