/// <summary> /// Ejection de la liseuse /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void B_EjecterPeriph_Click(object sender, EventArgs e) { if (liseuse != null) { if (!liseuse.IsBusy) { if (EjectUSB.EjectDrive(liseuse.Lecteur)) { EjectLiseuse(); } } } }
protected override void OnKeyDown(KeyEventArgs e) { if (e.Control && e.KeyCode == Keys.L) { BT_Peripherique.PerformClick(); } if (e.Control && e.KeyCode == Keys.M) { AfficherBoutonPeripherique(); //B_EnvoyerVersMemoirePrincipale.PerformClick(); } if (e.Alt && e.KeyCode == Keys.L) { EjectUSB.EjectDrive('g'); } //if(e.Control && e.KeyCode == Keys.M) //{ // EjectUSB.EjectDrive('') //} base.OnKeyDown(e); }