public void Close() { if (WaitBeforeLogin != null) { WaitBeforeLogin.Invoke((EventHandler) delegate { WaitBeforeLogin.Close(); }); } }
private void Form1_Load(object sender, EventArgs e) { this.tsslTips.Text = DateTimeHelper.GetServerDate(); if (RegistryHelper.CheckRegister()) { this.Text = this.Text + "[已注册]"; } else { this.Text = this.Text + "[未注册]"; } //关闭登录提示画面 _WaitBeforeLogin.Invoke((EventHandler) delegate { _WaitBeforeLogin.Close(); }); }