0
在我的Windows應用程序,我做以下時,電源開關按鈕,用戶點擊:爲什麼應用程序退出這麼久?的Windows Mobile 6.5 C#
void PowerButton_ButtonClicked(object sender)
{
DialogResult dl = MessageBox.Show(Globals.SECUEXIT, Globals.CMD_EXIT, MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);
if (dl == DialogResult.Cancel)
{
return; //Power off canceled, nothing to do
}
else
{
Program.btConn.send(BtMsg.OFF); //Send the turn off instruction to the BT device.
Program.scr_SplashScreen.exitRequest();
Application.Exit();
}
}
它以15秒〜應用程序之前,我的手機上關閉。我怎樣才能加快這個過程?
謝謝!