예제 #1
0
        private void listView1_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count == 0)
            {
                return;
            }

            FormTask.StartTask((Task)listView1.SelectedItems[0].Tag, settings);

            Hide();
        }
예제 #2
0
파일: FormMain.cs 프로젝트: minskowl/MY
        private void MenuItem_Click(object sender, EventArgs e)
        {
            if (!(sender is ToolStripMenuItem))
            {
                return;
            }

            ToolStripMenuItem item = (ToolStripMenuItem)sender;

            if (item.Tag == null)
            {
                return;
            }

            if (!(item.Tag is Task))
            {
                return;
            }

            FormTask.StartTask((Task)item.Tag, applicationManager.Settings);
        }