private void DeleteSB_Click(object sender, EventArgs e) { DocumentStatesLogic documentStatesLogic = new DocumentStatesLogic(manager); documentStatesLogic.Create(Convert.ToInt32(DataGV.SelectedRows[0].Cells["ID"].Value), 3, DateTime.Now); //documentsLogic.Delete(Convert.ToInt32(DataGV.SelectedRows[0].Cells["ID"].Value)); manager.Save(); Fill(); }