Example #1
0
 //создание хмл
 void Button_xmlCreateClick(object sender, EventArgs e)
 {
     lw     = new ListWord(textBox_filePath.Text);
     serial = new XmlSerializer(typeof(List <Word>));
     using (FileStream fs = new FileStream(Environment.CurrentDirectory + @"\word.xml", FileMode.Create, FileAccess.Write))
     {
         serial.Serialize(fs, lw.GetListWord());
         MessageBox.Show("Создан XML");
     }
 }
Example #2
0
 void Button1Click(object sender, EventArgs e)
 {
     lw = new ListWord(textBox_filePath.Text);
     dataGridView1.DataSource = lw.GetListWord();
     label_count.Text         = dataGridView1.RowCount.ToString();
 }