public TExcState(IntPtr hWnd = default(IntPtr)) { // Always Need this option cur_state_ = Win32API.ES_CONTINUOUS; lc_keeper_ = new LidCloseAwakeKeeper(hWnd); //lc_keeper_.AddValChangeCB(new ValChangeCB(this.RunValChangeCB)); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //new MyNotifyIcon(); //Application.Run(); LidCloseAwakeKeeper.CheckLogError(); Application.Run(new MainForm()); }