winfrom切換賬號功能

切換賬號按鈕事件代碼:

         if (DialogResult.Yes == MessageBox.Show("您確定要切換賬號嗎?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question))
                {
                    System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location);
                    Process.GetCurrentProcess().Kill();
                }

 

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