切换账号按钮事件代码:
if (DialogResult.Yes == MessageBox.Show("您确定要切换账号吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question)) { System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location); Process.GetCurrentProcess().Kill(); }