public bool Initialize() { if (!isInitialized && CheckGCPower()) { try { devicename = KeyboardFactory.GetOEMName(); keyboard = KeyboardFactory.CreateHIDDevice("hidkeyboard"); if (keyboard != null) { bRefreshOnce = true; isInitialized = true; //SetBrightness(); return(true); } isInitialized = false; return(false); } catch { Global.logger.Error("Uniwill device error!"); } // Mark Initialized = FALSE isInitialized = false; return(false); } return(isInitialized); }
public UniwillDevice() { devicename = KeyboardFactory.GetOEMName(); ChoiceGamingCenter(); }