private void DebugWriteLine(string text) { if (null != FormDebug) { FormDebug.OutputWriteLine("ViewPeople: " + text); } }
private void OpenDebugForm() { _debugForm = new FormDebug(); _debugForm.Location = new Point( Screen.PrimaryScreen.Bounds.Width - _debugForm.Width - 20, Screen.PrimaryScreen.Bounds.Height - _debugForm.Height - 40 ); _debugForm.StartPosition = FormStartPosition.Manual; _debugForm.Show(); }
private void Form1_Load(object sender, EventArgs e) { Keys ks = ModifierKeys; if (ks == Keys.Shift) { debug = new FormDebug(); debug.Show(); AddDebugInfo(DEBUG_TYPE.info, "debug window started"); } xml.readXML(); timer1.Tag = "A"; timer1.Enabled = true; }
public bool InstallHook(FormDebug frmDebug) { m_Debug = frmDebug; if (hHook.ToInt32() == 0) { // Create an instance of HookProc hookFunction = new CBTHookProc(CBTHookProcFn); hHook = SetWindowsHookEx(WH_CBT, hookFunction, IntPtr.Zero, new IntPtr(GetCurrentThreadId())); //Thread.CurrentThread.ManagedThreadId } // Return success status of SetWindowsHookEx return(hHook.ToInt32() != 0); }
public bool InstallHook(FormDebug frmDebug) { m_Debug = frmDebug; if (hHook.ToInt32() == 0) { // Create an instance of HookProc hookFunction = new CBTHookProc(CBTHookProcFn); hHook = SetWindowsHookEx(WH_CBT, hookFunction, IntPtr.Zero, new IntPtr(GetCurrentThreadId())); //Thread.CurrentThread.ManagedThreadId } // Return success status of SetWindowsHookEx return (hHook.ToInt32() != 0); }