Beispiel #1
0
        private void ListView2_RetrieveVirtualItem(object sender, RetrieveVirtualItemEventArgs e)
        {
            sbyte[]      microinstruccion     = Main.ListaMicroinstrucciones[e.ItemIndex];
            ListViewItem itemMicroinstruccion = new ListViewItem(UC.ObtenerMicroInstruccionAPartirDeSeñales(microinstruccion));

            itemMicroinstruccion.SubItems.AddRange
                (new ListViewItem.ListViewSubItem[] {
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, "     " + microinstruccion[0].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, "     " + microinstruccion[1].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, "     " + microinstruccion[2].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, "     " + microinstruccion[3].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, "     " + microinstruccion[4].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, "     " + microinstruccion[5].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, "     " + microinstruccion[6].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, "     " + microinstruccion[7].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, "     " + microinstruccion[8].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, "     " + microinstruccion[9].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, "     " + microinstruccion[10].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, "     " + microinstruccion[11].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, "     " + microinstruccion[12].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, microinstruccion[13] < 0 ? "     X" : "     " + microinstruccion[13].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, microinstruccion[14] < 0 ? "     X" : "     " + microinstruccion[14].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, microinstruccion[15] < 0 ? "     X" : "     " + microinstruccion[15].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, "     " + microinstruccion[16].ToString()),
                new ListViewItem.ListViewSubItem(itemMicroinstruccion, "     " + microinstruccion[17].ToString())
            });

            e.Item = itemMicroinstruccion;
        }