예제 #1
0
파일: Form6.cs 프로젝트: iksbistritskaya/-
 private void StbBil()
 {
     try
     {
         Action action = () =>
         {
             try
             {
                 DateBaseTables dataComb = new DateBaseTables();
                 dataComb.DTDolj.Clear();
                 dataComb.FillDolj();
                 dataComb.dependency.OnChange       += BILon;
                 dataGridView2.DataSource            = dataComb.DTDolj;
                 dataGridView2.Columns[0].Visible    = false;
                 dataGridView2.Columns[1].HeaderText = "Название";
                 dataGridView2.Columns[2].HeaderText = "Название";
             }
             catch
             {
             }
         };
         Invoke(action);
     }
     catch { }
 }
예제 #2
0
파일: Form6.cs 프로젝트: iksbistritskaya/-
 private void stbBil()
 {
     try
     {
         Action action = () =>
         {
             try
             {
                 DateBaseTables dataComb = new DateBaseTables();
                 dataComb.DTDan_pac.Clear();
                 dataComb.Fillsotr();
                 dataComb.dependency.OnChange        += BILonchange;
                 dataGridView1.DataSource             = dataComb.DTDan_pac;
                 dataGridView1.Columns[0].Visible     = false;
                 dataGridView1.Columns[1].HeaderText  = "Фамилия";
                 dataGridView1.Columns[2].HeaderText  = "Имя";
                 dataGridView1.Columns[3].HeaderText  = "Отчество";
                 dataGridView1.Columns[4].HeaderText  = "Тариф";
                 dataGridView1.Columns[5].HeaderText  = "Дата рождения";
                 dataGridView1.Columns[6].HeaderText  = "Серия паспорта";
                 dataGridView1.Columns[7].HeaderText  = "Номер паспорта";
                 dataGridView1.Columns[8].HeaderText  = "Номер полиса";
                 dataGridView1.Columns[9].HeaderText  = "Срок беременности";
                 dataGridView1.Columns[10].HeaderText = "Логин";
                 dataGridView1.Columns[11].HeaderText = "Пароль";
             }
             catch
             {
             }
         };
         Invoke(action);
     }
     catch { }
 }