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
| namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
/*------------------Code correspondant au textBox---------*/
Repertoire.Text = Path.GetFullPath(
Path.Combine(System.Windows.Forms.Application.StartupPath, "..\\..")) +
"\\FichieràLire.";
Repertoire.Select(0, 0);
}
private void panel1_Paint(object sender, PaintEventArgs e)
{
}
private void panel1_DragEnter(object sender, DragEventArgs e)
{
e.Effect = DragDropEffects.All;
}
private void panel1_DragDrop(object sender, DragEventArgs e)
{
string[] files = (string[])e.Data.GetData(DataFormats.FileDrop, false);
/*------Afficher une fenêtre avec le nom du fichier importé-----*/
foreach (string file in files)
MessageBox.Show(file);
}
private void Bouton_Lire(object sender, EventArgs e)
{
/*--------------Ma fonction-------------------------------*/
string[,] values = MaFonction(Repertoire.Text);
/*-------------Suite des instructions--------------------*/ |
Partager