private void bNpcTextCreate_Click(object sender, EventArgs e) { rtbNpcTextOut.Clear(); rtbNpcTextOut.ForeColor = Color.Blue; NPC_TEXT npc_text; npc_text = NPCTextHandler.LoadValues(_gpText); for (int x = 0; x < 8; x++) { npc_text.text0[x] = npc_text.text0[x].RemExc(); npc_text.text1[x] = npc_text.text1[x].RemExc(); } StringBuilder sb = new StringBuilder(); sb.AppendFormatLine("DELETE FROM `npc_text` WHERE `ID`='{0}';", npc_text.ID); sb.AppendLine("INSERT INTO `npc_text` VALUES (" + npc_text.ToArrayString() + ");"); rtbNpcTextOut.Text = sb.ToString(); }
private void ParseNpcTextData(NPC_TEXT npc_text) { NPCTextHandler.DisplayValues(_gpText, npc_text); }