Exemplo n.º 1
0
 private void buttonEditCard_Click(object sender, EventArgs e)
 {
     if (listBoxCards.SelectedItem != null)
     {
         RFIDCardCommandsEditor commandsEditor = new RFIDCardCommandsEditor((listBoxCards.SelectedItem as RFIDCard));
         commandsEditor.ShowDialog();
         if (commandsEditor.Commands != null)
         {
             (listBoxCards.SelectedItem as RFIDCard).Commands = commandsEditor.Commands;
         }
     }
 }
Exemplo n.º 2
0
 private void buttonEditCard_Click(object sender, EventArgs e)
 {
     if (listBoxCards.SelectedItem != null)
     {
         RFIDCardCommandsEditor commandsEditor = new RFIDCardCommandsEditor((listBoxCards.SelectedItem as RFIDCard));
         commandsEditor.ShowDialog();
         if (commandsEditor.Commands != null)
         {
             (listBoxCards.SelectedItem as RFIDCard).Commands = commandsEditor.Commands;
         }
     }
 }