Пример #1
0
 private void button_DeleteKeyword_Click(object sender, EventArgs e)
 {
     if (dgk_DB.SelectedRows.Count != 0)
     {
         for (int i = 0; i < dgk_DB.Rows.Count; i++)
         {
             if (dgk_DB.Rows[i].Selected == true)
             {
                 Console.WriteLine(Convert.ToInt32(dgk_DB[0, i].Value));
                 FilePersonKeywordClient client = new FilePersonKeywordClient();
                 client.DeleteKeyword(Convert.ToInt32(dgk_DB[0, i].Value));
                 client.Close();
             }
         }
         RefreshDgk_DB();
         RefreshDgk_file();
     }
 }