/// <summary> /// 页面载入响应 /// </summary> protected override void OnGmPageLoad() { this.errorLabel.Text = ""; if (!this.IsPostBack) { this.versionLabel.Text = GmNormal.Version; if (Ban.banList.Count == 0 || Ban.banList == null) { Ban.LoadBanList(); } if (ShutUp.shutupList.Count == 0 || ShutUp.shutupList == null) { ShutUp.LoadShutupList(); } for (int i = 0; i < gmt.Server.Count; ++i) { gmt.Server theServer = gmt.Server.GetServerAt(i); this.serverListBox.Items.Add(new ListItem(theServer.Name)); } } }
protected void Page_LoadComplete() { Ban.SaveBanList(); ShutUp.SaveShutupList(); }