winfrom切换账号功能

切换账号按钮事件代码:

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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章