コード例 #1
0
 /// <summary>
 /// Метод для обновления таблицы и группами.
 /// </summary>
 private void UpdateGridGr()
 {
     using (DataMy dm = DataMy.GetInstanse())
     {
         using (
             ViewMyDataTableToGridView vm = new ViewMyDataTableToGridView(dm.GetTable("group_contacts"),
                                                                          dataGridView2))
         {
             vm.GroupsGridFiller();
         }
     }
 }
コード例 #2
0
 /// <summary>
 /// Метод для фильтрации контактов по группам.
 /// </summary>
 void UpdateContactsGrid()
 {
     using (DataMy dt = DataMy.GetInstanse())
     {
         using (DataTable dtt = dt.GetTable("Contacts"))
         {
             using (ViewMyDataTableToGridView vm = new ViewMyDataTableToGridView(dtt, dataGridView2))
             {
                 vm.ContactsGridFiller(checkBox2, comboBox1);
             }
         }
     }
 }
コード例 #3
0
 private void UpdateGrid()
 {
     using (DataMy dt = DataMy.GetInstanse())
         using (ViewMyDataTableToGridView vm = new ViewMyDataTableToGridView(dt.GetTable("Cannels"), dataGridView1))
             vm.ChannelsGridFiller(label1, label2, label3, checkBox1);
 }