if ( MessageBox.Show("要重新启动嘛?","提示", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes) System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location);
转载于:https://www.cnblogs.com/LYunF/archive/2013/03/05/2943895.html