示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (newTaskDialog.ShowDialog() == DialogResult.OK)
            {
                ITask t = newTaskDialog.Task;

                if (t != null)
                {
                    applicationLog.Add("Created new task " + t.ToString());
                    listBox1.Items.Add(t);
                }
            }
        }