public void revalidateDriver() { p.ChooseDriver(); if (p.deviceNum==0) {try{setClosed(true);}catch (Exception e){}; return;}
public void revalidateDriver() { p.ChooseDriver(); if (p.deviceNum == 0) { try { setClosed(true); } catch (Exception e) { } return;
  public void revalidateDriver()  {  p.ChooseDriver();  if (p.deviceNum==0) {try{setClosed(true);}catch (Exception e){}; return;}  }