Exemplo n.º 1
0
 private void button3_Click_1(object sender, EventArgs e)
 {
     if (lvMain.SelectedIndices.Count > 0)
     {
         ListViewItem item   = lvMain.Items[lvMain.SelectedIndices[0]];
         SpecsDetail  detail = CurrentSpecs.FindByID(Int32.Parse(item.Tag.ToString()));
         //MessageBox.Show(String.Format("{0},{1}", item.Text, item.SubItems.ToString()));
         FormCheckDetail detailform = new FormCheckDetail(detail);
         if (detailform.ShowDialog() == DialogResult.OK)
         {
             MessageBox.Show(detail.Note);
         }
     }
 }
Exemplo n.º 2
0
        private void button3_Click_1(object sender, EventArgs e)
        {
            if (lvMain.SelectedIndices.Count > 0)
            {

                ListViewItem item = lvMain.Items[lvMain.SelectedIndices[0]];
                SpecsDetail detail = CurrentSpecs.FindByID(Int32.Parse(item.Tag.ToString()));
                //MessageBox.Show(String.Format("{0},{1}", item.Text, item.SubItems.ToString()));
                FormCheckDetail detailform = new FormCheckDetail(detail);
                if (detailform.ShowDialog() == DialogResult.OK)
                {
                    MessageBox.Show(detail.Note);
                }
            }
        }