private void UpdateCar() { if (dgvCar.RowCount > 0) { CarInfoDialog dlg = new CarInfoDialog(CarInfoManager.DIALOG_MODE.MODIFY, m_car.id); UpdateDialogResult(dlg.ShowDialog()); } else { MessageBox.Show("차량 정보가 없습니다.", "알림", MessageBoxButtons.OK); } }
private void CreateCar() { CarInfoDialog dlg = new CarInfoDialog(CarInfoManager.DIALOG_MODE.SAVE); UpdateDialogResult(dlg.ShowDialog()); }