private void RemoveTaskButton_Click(object sender, EventArgs e) { foreach (DataGridViewRow dataRow in this.checklistDisplayGridView.SelectedRows) { TaskObjectLogic.RemoveTask(dataRow); } sqlLogic.SendMasterListToSQLServer(); checklistDisplayGridView.DataSource = TaskObjectLogic.masterTaskList.Where(item => item.CompletionStatus == false).ToList(); }
protected async Task OnChangesSaved() { _taskLogic = _container.GetService <TaskObjectLogic>(); var entities = GetChangedEntities(); await _taskLogic.ExecuteAsync(GetChangedEntitiesByType(entities, typeof(TMSTask))); }