private static void CSCbNewSrc(eid_vwr_source eid_vwr_source) { theData.WriteLog("CSCbNewSrc called " + eid_vwr_source.ToString() + "\n", eid_vwr_loglevel.EID_VWR_LOG_DETAIL); switch (eid_vwr_source) { case eid_vwr_source.EID_VWR_SRC_UNKNOWN: theData.ResetDataValues(); AdjustIconImage("Resources/Images/state_error.png"); break; case eid_vwr_source.EID_VWR_SRC_NONE: theData.ResetDataValues(); AdjustIconImage("Resources/Images/state_noeidpresent.png"); break; case eid_vwr_source.EID_VWR_SRC_CARD: theData.text_color = "Black"; AdjustIconImage("Resources/Images/state_eidpresent.png"); theData.eid_card_present = true; theData.progress_bar_visible = "Visible"; break; case eid_vwr_source.EID_VWR_SRC_FILE: theData.text_color = "Black"; AdjustIconImage("Resources/Images/state_fileloaded.png"); theData.eid_card_present = true; theData.progress_bar_visible = "Visible"; break; default: break; } }
private static void CSCbNewSrc(eid_vwr_source eid_vwr_source) { theData.WriteLog("CSCbNewSrc called " + eid_vwr_source.ToString() + "\n", eid_vwr_loglevel.EID_VWR_LOG_NORMAL); theData.ResetDataValues(); switch (eid_vwr_source) { case eid_vwr_source.EID_VWR_SRC_UNKNOWN: AdjustIconImage("Resources/Images/state_error.png"); break; case eid_vwr_source.EID_VWR_SRC_NONE: AdjustIconImage("Resources/Images/state_noeidpresent.png"); break; case eid_vwr_source.EID_VWR_SRC_CARD: theData.open_enabled = false; AdjustIconImage("Resources/Images/state_eidpresent.png"); theData.eid_card_present = true; theData.progress_bar_visible = "Visible"; theData.progress_info = "reading eID card"; break; case eid_vwr_source.EID_VWR_SRC_FILE: AdjustIconImage("Resources/Images/state_fileloaded.png"); theData.eid_card_present = true; theData.progress_info = "reading eID file"; theData.progress_bar_visible = "Visible"; break; default: break; } }
private static void CSCbNewSrc(eid_vwr_source eid_vwr_source) { //Console.WriteLine("CbNewSrc called "); //Console.WriteLine(eid_vwr_source.ToString()); if (theData.log_level == eid_vwr_loglevel.EID_VWR_LOG_DETAIL) { theData.logText += "CSCbNewSrc called " + eid_vwr_source.ToString() + "\n"; } switch (eid_vwr_source) { case eid_vwr_source.EID_VWR_SRC_UNKNOWN: theData.type_kaart = "onbekende kaart"; theData.ResetDataValues(); AdjustIconImage("Resources\\state_error.png"); break; case eid_vwr_source.EID_VWR_SRC_NONE: theData.ResetDataValues(); AdjustIconImage("Resources\\state_noeidpresent.png"); break; case eid_vwr_source.EID_VWR_SRC_CARD: theData.type_kaart = "IDENTITEITSKAART"; theData.text_color = "Black"; AdjustIconImage("Resources\\state_eidpresent.png"); theData.eid_card_present = true; theData.progress_bar_visible = "Visible"; break; case eid_vwr_source.EID_VWR_SRC_FILE: theData.type_kaart = "IDENTITEITSKAART"; theData.text_color = "Black"; AdjustIconImage("Resources\\state_fileloaded.png"); break; default: break; } }