public void Dispose() { if (this.mPrompt != null) { this.mPrompt.ResponseTextChanged -= this.mOnTextChanged; this.mPrompt.Dispose(); this.mPrompt = null; } }
public JazzGraphNamePrompt() { this.mKey = new RK(GlobalManager.kJazzTID, 0, 0); this.mName = ""; this.mPrompt = new SingleStringPrompt( kPromptText + this.mKey, "Jazz Graph Name", ""); this.mOnTextChanged = new EventHandler(this.OnResponseTextChanged); this.mPrompt.ResponseTextChanged += this.mOnTextChanged; }
public JazzGraphNamePrompt(string name, string bannedName) { this.mName = name ?? ""; this.mKey = new RK(GlobalManager.kJazzTID, 0, 0); this.ParseIID(); this.mPrompt = new SingleStringPrompt( kPromptText + this.mKey, "Jazz Graph Name", this.mName); if (!string.IsNullOrEmpty(bannedName)) { this.BannedNames.Add(bannedName); if (this.mName.Equals(bannedName)) { this.mPrompt.OKEnabled = false; } } this.mOnTextChanged = new EventHandler(this.OnResponseTextChanged); this.mPrompt.ResponseTextChanged += this.mOnTextChanged; }