private void buttonSave_Click(object sender, EventArgs e) //등록버튼 { //등록 창 불러오기 TodayWorkSaveChange todayWorkSaveChange = new TodayWorkSaveChange(gridView, "등록"); todayWorkSaveChange.Show(); }
private void buttonChange_Click(object sender, EventArgs e) //수정버튼 { //MessageBox.Show(UserInfo.Getinstance().Id); try { //수정시 선택한 값, id int id = Int32.Parse(dataGridViewSelect.Rows[dataGridViewSelect.CurrentCellAddress.Y].Cells[0].Value.ToString()); //수정시 수정되는 업무 등록자 string name = dataGridViewSelect.Rows[dataGridViewSelect.CurrentCellAddress.Y].Cells[1].Value.ToString(); //수정 창 불러오기 TodayWorkSaveChange todayWorkSaveChange = new TodayWorkSaveChange(gridView, "수정", id, name); todayWorkSaveChange.Show(); } catch { MessageBox.Show("선택후 진행해 주세요"); } }