Exemplo n.º 1
0
        public void OnMouseDoubleClick(object sender, MouseEventArgs e)
        {
            Point m     = PointToClient(Control.MousePosition);
            int   x     = m.X / (Options.ArtItemSizeWidth - 1);
            int   y     = m.Y / (Options.ArtItemSizeHeight - 1);
            int   index = GetIndex(x, y);

            if (index >= 0)
            {
                ItemDetail f = new ItemDetail(index);
                f.TopMost = true;
                f.Show();
            }
        }
Exemplo n.º 2
0
 public void listView_DoubleClicked(object sender, MouseEventArgs e)
 {
     if (listView1.SelectedItems.Count == 1)
     {
         ItemDetail f;
         if ((int)listView1.SelectedItems[0].Tag == -1)
         {
             f = new ItemDetail(listView1.SelectedIndices[0]);
         }
         else
         {
             f = new ItemDetail((int)listView1.SelectedItems[0].Tag);
         }
         f.TopMost = true;
         f.Show();
     }
 }
Exemplo n.º 3
0
 public void listView_DoubleClicked(object sender, MouseEventArgs e)
 {
     if (listView1.SelectedItems.Count == 1)
     {
         ItemDetail f;
         if ((int)listView1.SelectedItems[0].Tag == -1)
             f = new ItemDetail(listView1.SelectedIndices[0]);
         else
             f = new ItemDetail((int)listView1.SelectedItems[0].Tag);
         f.TopMost = true;
         f.Show();
     }
 }
 public void OnMouseDoubleClick(object sender, MouseEventArgs e)
 {
     Point m = PointToClient(Control.MousePosition);
     int x = m.X / (Options.ArtItemSizeWidth - 1);
     int y = m.Y / (Options.ArtItemSizeHeight - 1);
     int index = GetIndex(x, y);
     if (index >= 0)
     {
         ItemDetail f = new ItemDetail(index);
         f.TopMost = true;
         f.Show();
     }
 }