Exemple #1
0
 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();
 }
        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();
                }
            }
        }
Exemple #3
0
 public void closeWin(ThoughtInfo tIn)
 {
     openThoughts.Remove(tIn);
 }