Ejemplo n.º 1
0
 private void SubmitButton_Click(object sender, EventArgs e)
 {
     if (user != null && EquipmentList.SelectedIndex != -1)
     {
         PrintSheet.PrintLostSheet(user, equipments[EquipmentList.SelectedIndex]);
         //TODO
         this.Close();
     }
 }
Ejemplo n.º 2
0
 private void SubmitButton_Click(object sender, EventArgs e)
 {
     if (user == null)
     {
         showMessage("User is not found / Пользователь не найден");
     }
     else if (EquipmentList.SelectedIndex == -1)
     {
         showMessage("Lost equipment is not selected / Утерянное оборудование не выбрано");
     }
     else
     {
         PrintSheet.PrintLostSheet(user, equipments[EquipmentList.SelectedIndex]);
         Connector1C.lostEquipment(equipments[EquipmentList.SelectedIndex]);
         cardReader.CloseConnection();
         this.Close();
     }
 }