public void FirstLoadWebSystem(Login login) { MethodInvoker method = null; if (Variable.sProjectID.Equals("zhongtong", StringComparison.OrdinalIgnoreCase) && (Variable.sWebMenuList.Trim().Length > 0)) { if (method == null) { method = () => this.gotoWebSystem(); } login.Invoke(method); this.LoadWebSystem.WaitOne(); } }