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