예제 #1
0
 /// <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();
             }
         }
     }
 }
예제 #2
0
        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);
        }