Exemple #1
0
        private void AddTaskListButton_Click(object sender, EventArgs e)
        {
            TaskListWinForm taskListWinForm = DependencyResolver.Container.Resolve <TaskListWinForm>();

            taskListWinForm.AddTaskList();
            TaskListName.Text = "";
        }
Exemple #2
0
        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");
            }
        }
Exemple #3
0
        private void listTaskListButton_Click(object sender, EventArgs e)
        {
            TaskListWinForm taskListWinForm = DependencyResolver.Container.Resolve <TaskListWinForm>();

            taskListWinForm.ShowTaskList();
        }