예제 #1
0
        private void btnNewTask_Click(object sender, EventArgs e)
        {
            NewTask newTask = new NewTask(new object[] { });

            newTask.ShowDialog();

            loadTasks();
        }
예제 #2
0
        private void btnEditTask_Click(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(((PictureBox)sender).Tag);

            NewTask newTask = new NewTask(new object[] { id });

            newTask.ShowDialog();

            loadTasks();
        }