Beispiel #1
0
 private void btnExit_Click(object sender, EventArgs e)
 {
     if (bDirtyProfile)
     {
         if (MessageBox.Show("当前车辆配置未保存\n\n仍然想要退出吗?", "警告", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
         {
             base.Close();
         }
     }
     else
     {
         base.Close();
     }
     m_obdInterface.SaveActiveProfile((VehicleProfile)comboProfile.SelectedItem);
 }