编辑XML C#应用程序 [英] Editing XML C# Application
本文介绍了编辑XML C#应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,当用户从组合框中选择一本书尝试以XML进行编辑时,我的编辑按钮不起作用,大家有没有机会向我指出正确的方向?谢谢:)
当前它正在保存已编辑的XML,但是随后覆盖了编辑,因为它似乎两次调用了add record函数,所以我调试了程序,但看不到哪里.
Hi guys, my edit button doesn''t work when the user selects a book from the combo box to try and edit in XML, any chance you guys could point me in the right direction? thanks :)
Currently it is saving the edited XML, but then over writing the edit, because it seems to be calling the add record function twice, Ive debugged the program and i cannot see where.
{
string[] bookData = objectDatabase.RetrieveBooks(comboBox1.SelectedIndex);
objectDatabase.SetDataView("BookDetails", "Title");
int edited = AddBook();
if (edited == 1)
{
objectDatabase.DeleteRow(UpdateIndex);
comboBox1.Update();
MessageBox.Show("Updated");
}
}
推荐答案
信息不足.请详细说明.
insufficient information. please elaborate.
这篇关于编辑XML C#应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文