コード例 #1
0
ファイル: Form1.cs プロジェクト: JDiPierro/ThoughtQ
 private void thoughtList_DoubleClick(object sender, EventArgs e)
 {
     ListView.SelectedListViewItemCollection selected = thoughtList.SelectedItems;
     foreach (ListViewItem item in selected)
     {
         Thought found = thoughts.Find(i => i.getTitle() == item.Text);
         ThoughtInfo tInfo = new ThoughtInfo(found, thoughts);
         tInfo.ShowDialog();
     }
     updateList();
 }
コード例 #2
0
        private void archiveList_DoubleClick(object sender, EventArgs e)
        {
            var selected = archiveList.SelectedItems;
            foreach (ListViewItem item in selected)
            {
                Thought found = (Thought)item.Tag;

                ThoughtInfo t = openThoughts.Find(i => (Thought)i.Tag == found);

                if (t == null)
                {
                    ListViewItem permItem = item;
                    ThoughtInfo tInfo = new ThoughtInfo(ref permItem, ref queue, this);
                    tInfo.Tag = found;

                    openThoughts.Add(tInfo);
                    tInfo.Show();
                }
                else
                {
                    t.Focus();
                }
            }
        }
コード例 #3
0
ファイル: MainWindow.cs プロジェクト: JDiPierro/ThoughtQ
 public void closeWin(ThoughtInfo tIn)
 {
     openThoughts.Remove(tIn);
 }