Esempio n. 1
0
 private void listView1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (listView1.SelectedItems.Count > 0)
     {
         int              Index = listView1.SelectedItems[0].Index;
         String           aa    = listView1.Items[Index].Text;
         ReportDetailForm f     = new ReportDetailForm(aa, dp1, dp2, dp3);
         f.Show();
     }
 }
Esempio n. 2
0
        private void listView1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            ListViewHitTestInfo info = listView1.HitTest(e.X, e.Y);

            if (info.Item != null)
            {
                if (listView1.SelectedItems.Count > 0)
                {
                    int              Index = listView1.SelectedItems[0].Index;
                    String           aa    = listView1.Items[Index].Text;
                    ReportDetailForm f     = new ReportDetailForm(aa, dp1, dp2, dp3);
                    f.Show();
                }
            }
        }