private void btnDel_Click(object sender, EventArgs e) { _templateList.Delete(_dgvMain.GetID()); loadData(); }