Example #1
0
 public int Delete()
 {
     int result = TableData.DeleteByColumnValues("Group", "StudentProgressDB",
            new List<string>() { "GroupID" },
            new List<string>() { this.Id.ToString() });
     if (result > 0)
         Group.Items.Remove(this.Id);
     return result;
 }
Example #2
0
        public int Delete()
        {
            int result = TableData.DeleteByColumnValues("Student", "StudentProgressDB",
                                                        new List <string>()
            {
                "StudentID"
            },
                                                        new List <string>()
            {
                this.Id.ToString()
            });

            if (result > 0)
            {
                Subject.Items.Remove(this.Id);
            }
            return(result);
        }