愤斗的程序猿丷
Keep on going never give up.
 public LoginForm()
        {
            InitializeComponent();

            //判断是否调试状态
            Process currentProcess = Process.GetCurrentProcess();//获取当前进程
            //获取当前运行程序完全限定名
            string currentFileName = currentProcess.MainModule.FileName;
            if (currentFileName.EndsWith("vshost.exe"))
            {
                GlobalVar.IsDebug = true;
            }
            else
            {
                GlobalVar.IsDebug = false;
               
            }
        }

 

posted on 2018-02-09 09:15  愤斗的程序猿丷  阅读(378)  评论(0编辑  收藏  举报