private void button3_Click(object sender, EventArgs e)
 {
     using (LoadingInFromFile ld = LoadingInFromFile.Instance)
     {
         ld.SaveChannelsToFile();
     }
     #region  Создание дт
     //using (DataMy dt = new DataMy())
     //{
     //    using (DataTable dtt = dt.GetTable("group_contacts"))
     //    {
     //        dtt.Columns[0].Unique = true;
     //        dtt.Columns[0].AutoIncrement = true;
     //        dtt.Columns[0].AutoIncrementSeed = (long)dtt.Rows[(dtt.Rows.Count - 1)][0] + 1;
     //        dtt.Columns[0].AutoIncrementStep = 1;
     //        DataRow dr = dtt.NewRow();
     //        dr[0] = 11;
     //        dr[1] = "fffffv";
     //        dr[2] = "fffffv";
     //        DataRow dr1 = dtt.NewRow();
     //        dr1[1] = "fffff";
     //        dr1[2] = "fffff";
     //       // dtt.Rows.Add(dr);
     //       // dtt.Rows.Add(dr1);
     //       // dtt.Rows.RemoveAt(1);
     //      // dtt.Rows.RemoveAt(0);
     //        dtt.Rows.Remove(dtt.Rows[0]);
     //        //DataMy.LoadGroupsToDT(dtt);
     //        dataGridView3.DataSource = dtt;//dt.GetTable("group_contacts");
     //    }
     //}
     #endregion
 }
 private void button2_Click(object sender, EventArgs e)
 {
     using (LoadingInFromFile ld = LoadingInFromFile.Instance)
     {
         ld.LoadChannelsFromFile();
         UpdateGrid();
     }
 }