Пример #1
0
        private void lstNon_DoubleClick(object sender, EventArgs e)
        {
            TaskUI task = new TaskUI();

            task.Text = lstNon.SelectedItem.ToString();
            task.ShowDialog();
        }
Пример #2
0
        private void btSelect_Click(object sender, EventArgs e)
        {
            TaskUI task = new TaskUI();

            if (lstFunc.SelectedIndex < 0)
            {
                task.Text = lstNon.SelectedItem.ToString();
            }
            else
            {
                task.Text = lstFunc.SelectedItem.ToString();
            }
            task.ShowDialog();
        }