// 로직아이템 선택삭제 private void button3_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in this.dataGridView1.SelectedRows) { dataGridView1.Rows.RemoveAt(row.Index); } UIService.AutoSequence(dataGridView1); }
// 그리드 로우 최하단으로 이동 private void pictureBox6_Click(object sender, EventArgs e) { UIService.DataGridViewRowMoveBottom(dataGridView1); UIService.AutoSequence(dataGridView1); }
// 액션 추가 private void AddAction(object sender, EventArgs e) { PictureBox o = (PictureBox)sender; LogicItem item = new LogicItem(); string action = null; string value = null; switch (o.Name) { case "ActionKeyword": { action = "키워드"; value = textBox2.Text + "/" + comboBox4.Text; if (!IsVaildate(action, value)) { MessageBox.Show("값이 비어 있는 액션은 추가 할 수 없습니다."); return; } ; } break; case "ActionStay": { action = "체류"; value = textBox3.Text + "/" + textBox4.Text; } break; case "ActionScroll": { action = "스크롤"; value = textBox8.Text + "/" + textBox7.Text + "/" + textBox10.Text + "/" + textBox9.Text + "/" + textBox12.Text + "/" + textBox11.Text; } break; case "ActionView": { action = "게시글조회"; value = textBox5.Text; } break; case "ActionHistoryPrev": { action = "히스토리"; value = "Prev"; } break; case "ActionHistoryNext": { action = "히스토리"; value = "Next"; } break; case "ActionMoveCategory": { action = "카테고리"; value = comboBox5.Text; } break; case "ActionMoveHome": { action = "홈"; value = "Move"; } break; } item.action = action; item.value = value; AddDataGridRow(item); UIService.AutoSequence(dataGridView1); }