private void btnInsert_Click(object sender, EventArgs e) { ShiftService S_service = new ShiftService(); ShiftPop frm = new ShiftPop(ShiftPop.EditMode.Input); if (frm.ShowDialog() == DialogResult.OK) { LoadData(); SetBottomStatusLabel("Shift정보 등록성공"); MessageBox.Show("Shift정보 등록성공"); } }
private void btnUpdate_Click(object sender, EventArgs e) { if (lblID.Text != "") { ShiftPop frm = new ShiftPop(ShiftPop.EditMode.Update, lblID.Text); if (frm.ShowDialog() == DialogResult.OK) { LoadData(); SetBottomStatusLabel("Shift정보 수정성공"); MessageBox.Show("Shift정보 수정성공"); } } else { SetBottomStatusLabel("선택된 정보가 없습니다"); MessageBox.Show("선택된 정보가 없습니다"); return; } }