вузли (reader. Read ()) (reader. NodeType == XmlNodeType. Element) (reader. Name == "q_question")
{(reader. Read ())
{(reader. Name == "q_variants")
{(reader. Read ())
{(reader. Name == "item")
{(reader. Read ())
{(reader. Name == "q_target")
{. Add (stripTags (reader. ReadString (). ToString ()));
} if (reader. Name == "q_bullet")
{. Add (stripTags (reader. ReadString (). ToString ()));
}}}}
}}}}
ДОДАТОК Б
Код функції редагування пакетаvoid Form3_Load (object sender, EventArgs e)
{(int i = 0; i
} void button1_Click (object sender, EventArgs e)
{
} void label1_Click (object sender, EventArgs e)
{
} void listBox1_SelectedIndexChanged (object sender, EventArgs e)
{
} void button1_Click_1 (object sender, EventArgs e)
{_fs = new FileStream (filename, FileMode. Open); _reader = new StreamReader (_fs); str = ""; = _reader. ReadToEnd ();
_reader. Close ();
_fs. Close (); fs = new FileStream (filename, FileMode. Create); _writer = new StreamWriter (fs);. Write (str. Replace (listBox1. SelectedItem. ToString (), textBox1. Text));
_writer. Close ();. Close ();. Items [listBox1. SelectedIndex] = textBox1. Text;
} void listBox1_Click (object sender, EventArgs e)
{. Text = listBox1. SelectedItem. ToString ();. Enabled = true;
} void listBox2_Click (object sender, EventArgs e)
{. Text = listBox2. SelectedItem. ToString ();. Enabled = true;
} void button2_Click (object sender, EventArgs e)
{_fs = new FileStream (filename, FileMode. Open); _reader = new StreamReader (_fs); str = ""; = _reader. ReadToEnd ();
_reader. Close ();
_fs. Close (); fs = new FileStream (filename, FileMode. Create); _writer = new StreamWriter (fs);
_writer. Write (str. Replace (listBox2. SelectedItem. ToString (), textBox2. Text));
_writer. Close ();. Close ();. Items [listBox2. SelectedIndex] = textBox2. Text;
} void listBox1_DoubleClick (object se...