private void buttonCreate_Click(object sender, EventArgs e)
        {
            try
            {
                Information info = new Information();
                info.Data1 = textBoxData1.Text;
                info.Data2 = textBoxData2.Text;
                info.Data3 = textBoxData3.Text;
                info.Data4 = textBoxData4.Text;
                info.Data5 = textBoxData5.Text;
                info.Data6 = textBoxData6.Text;
                info.Data7 = textBoxData7.Text;
                dt.Rows.Add(new object[] {
                    info.Data1,
                    info.Data2,
                    info.Data3,
                    info.Data4,
                    info.Data5,
                    info.Data6,
                    info.Data7
                });
                dt.AcceptChanges();

                dataGridView1.DataSource = null;
                dataGridView1.DataSource = dt;
                SaveXml.SaveData(dt, FILENAME);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
 public Form1()
 {
     InitializeComponent();
     if (File.Exists(FILENAME))
     {
         dt.ReadXml(FILENAME);
         dataGridView1.DataSource = dt;
     }
     else
     {
         dt.TableName = "Data";
         dt.Columns.Add("Data1", typeof(string));
         dt.Columns.Add("Data2", typeof(string));
         dt.Columns.Add("Data3", typeof(string));
         dt.Columns.Add("Data4", typeof(string));
         dt.Columns.Add("Data5", typeof(string));
         dt.Columns.Add("Data6", typeof(string));
         dt.Columns.Add("Data7", typeof(string));
         SaveXml.SaveData(dt, FILENAME);
     }
 }