私はC#を使用してwinformsアプリケーションを開発していて、テキストボックスにテキストを入力して次回保存するために、ユーザーがベールになる部分に保存機能を追加したかったのです。winformsアプリケーションでテキストデータを保持する方法は?
これはwinformsでどのように実装されていますか? ローカルのxmlファイルを試していて、読み込める間にテキストを維持できません。 data.xmlはプロジェクトのルートフォルダにあるローカルファイルです。
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(@"(full path)\visual studio 2015\Projects\My_helper\data.xml");
string subject = xmlDoc.DocumentElement.SelectSingleNode(@"./content/reminder_email/subject").InnerText.ToString();
string body = xmlDoc.DocumentElement.SelectSingleNode(@"./content/reminder_email/body").InnerText.ToString();
保存するものが少ない場合は、[プロパティの設定](https://stackoverflow.com/questions/650555/how-to-use-settings-in-visual-c-sharp)を使用することをお勧めします。 ) –
xmlの構造と、どのノードの下でデータを保存する必要がありますか? [this so](https://stackoverflow.com/questions/9616163/c-sharp-modify-a-xml-node)か[this so](https://stackoverflow.com/questions/)を見てみましたか? 16806838/how-to-update-xml-nodes-with-new-values)? –
[C#:xmlノードの変更](https://stackoverflow.com/questions/9616163/c-sharp-modify-a-xml-node)の可能な複製 –