1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
| using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace PFE
{
public partial class Form2 : Form
{
private const int IMG_Traveaux = 0;
private const int IMG_Stock = 1;
private const int IMG_Energie= 2;
private const int IMG_Sync = 3;
private const int IMG_Info = 4;
private const int IMG_Quitter = 5;
private ListViewItem LVI_Traveaux;
private ListViewItem LVI_Stock ;
private ListViewItem LVI_Energie;
private ListViewItem LVI_Sync;
private ListViewItem LVI_Info;
private ListViewItem LVI_Quitter;
public Form2()
{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
{
LVI_Traveaux = new ListViewItem("Travaux");
LVI_Traveaux.ImageIndex = IMG_Traveaux;
LVI_Stock = new ListViewItem("Stocks");
LVI_Stock.ImageIndex = IMG_Stock;
LVI_Energie = new ListViewItem("Energie");
LVI_Energie.ImageIndex = IMG_Energie;
LVI_Sync = new ListViewItem("Synchronisation");
LVI_Sync.ImageIndex = IMG_Sync;
LVI_Info = new ListViewItem("Informations");
LVI_Info.ImageIndex = IMG_Info;
LVI_Quitter = new ListViewItem("Quitter");
LVI_Quitter.ImageIndex = IMG_Quitter;
MaLV.Items.Add(LVI_Traveaux);
MaLV.Items.Add(LVI_Stock);
MaLV.Items.Add(LVI_Energie);
MaLV.Items.Add(LVI_Sync);
MaLV.Items.Add(LVI_Info);
MaLV.Items.Add(LVI_Quitter);
}
}
} |
Partager