예제 #1
0
 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);
     }
 }
예제 #2
0
        private void CreateCar()
        {
            CarInfoDialog dlg = new CarInfoDialog(CarInfoManager.DIALOG_MODE.SAVE);

            UpdateDialogResult(dlg.ShowDialog());
        }