private void AddTaskListButton_Click(object sender, EventArgs e) { TaskListWinForm taskListWinForm = DependencyResolver.Container.Resolve <TaskListWinForm>(); taskListWinForm.AddTaskList(); TaskListName.Text = ""; }
private void DeleteTaskListButton_Click(object sender, EventArgs e) { TaskListWinForm taskListWinForm = DependencyResolver.Container.Resolve <TaskListWinForm>(); if (taskList.SelectedItem != null) { int currentItem = (int)(taskList.SelectedValue); taskListWinForm.DeleteTaskList(currentItem); } else { MessageBox.Show("There is nothing selected"); } }
private void listTaskListButton_Click(object sender, EventArgs e) { TaskListWinForm taskListWinForm = DependencyResolver.Container.Resolve <TaskListWinForm>(); taskListWinForm.ShowTaskList(); }