private void buttonX1_Click(object sender, EventArgs e) // 输入查找的id { if (!this.radioDoodad.Checked && !this.radioItem.Checked && !this.radioNPC.Checked && !this.radioArmor.Checked && !this.radioTrinket.Checked && !this.radioWeapon.Checked) { MessageBox.Show("请先选择一种查找依据。"); return; } string strCnName = string.Empty; if (this.radioNPC.Checked) { strCnName = "NPC编辑器"; } else if (this.radioDoodad.Checked) { strCnName = "Doodad编辑器"; } else if (this.radioItem.Checked) { strCnName = "道具(Other.tab)"; } else if (this.radioArmor.Checked) { strCnName = "装备-防具"; } else if (this.radioTrinket.Checked) { strCnName = "装备-饰品"; } else if (this.radioWeapon.Checked) { strCnName = "装备-武器"; } else { return; } this.WindowState = FormWindowState.Minimized; BaseDialog dlg = BaseForm.ShowModelInDialog_Static(strCnName); this.WindowState = FormWindowState.Normal; string strID = string.Empty; string strName = string.Empty; if (dlg == null) { return; } strID = dlg.GetPropertyValue("id").ToString(); strName = dlg.GetPropertyValue("name").ToString(); this.textBoxX1.Text = string.Format("[{0}] {1}", strID, strName); this.ActiveControl = this.textBoxX1; }