private void YmapParentTextBox_TextChanged(object sender, EventArgs e) { if (populatingui) { return; } uint hash = 0; string name = YmapParentTextBox.Text; if (!uint.TryParse(name, out hash))//don't re-hash hashes { hash = JenkHash.GenHash(name); JenkIndex.Ensure(name); } YmapParentHashLabel.Text = "Hash: " + hash.ToString(); if (hash != 0) { var entry = ProjectForm.FindParentYmapEntry(hash); if (entry == null) { YmapParentHashLabel.Text += " (not found!)"; } } if (Ymap != null) { lock (ProjectForm.ProjectSyncRoot) { if (Ymap._CMapData.parent.Hash != hash) { Ymap._CMapData.parent = new MetaHash(hash); SetYmapHasChanged(true); //TODO: confirm entity parent linkage? } } } }