private string traduzStatusImpressora(GEDI_PRNTR_e_Status status) { string retorno; if (status == GEDI_PRNTR_e_Status.Ok) { retorno = "IMPRESSORA OK"; } else if (status == GEDI_PRNTR_e_Status.OutOfPaper) { retorno = "SEM PAPEL"; } else if (status == GEDI_PRNTR_e_Status.Overheat) { retorno = "SUPER AQUECIMENTO"; } else { retorno = "ERRO DESCONHECIDO"; } return retorno; }
public string getStatusImpressora() { try { this.status = this.iPrintr.Status(); } catch (GediException e) { throw new GediException(e.ErrorCode); } return(traduzStatusImpressora(this.status)); }