Ejemplo n.º 1
0
 private void ReaderSettings_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyValue == 56)
     {
         isKey8Pressed = true;
     }
     if (e.KeyValue == 57)
     {
         isKey9Pressed = true;
     }
     if (isKey8Pressed && isKey9Pressed)
     {
         if (!txtEpc.Focused)
         {
             if (isSettingsChanged)
             {
                 btnSave_Click(sender, e);
             }
             AdvancedReaderSettings advReaderSettings = new AdvancedReaderSettings();
             advReaderSettings.Show();
             isKey8Pressed = false;
             isKey9Pressed = false;
         }
     }
 }
Ejemplo n.º 2
0
 private void ReaderSettings_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyValue == 56)
     {
         isKey8Pressed = true;
     }
     if (e.KeyValue == 57)
     {
         isKey9Pressed = true;
     }
     if (isKey8Pressed && isKey9Pressed)
     {
         if (!txtEpc.Focused)
         {
             if (isSettingsChanged)
             {
                 btnSave_Click(sender, e);
             }
             AdvancedReaderSettings advReaderSettings = new AdvancedReaderSettings();
             advReaderSettings.Show();
             isKey8Pressed = false;
             isKey9Pressed = false;
         }
     }
 }