/// <summary> /// Loadイベント /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); GlobalHook_Mouse.AddEvent(this.MouseHookProcedure); }
/// <summary> /// Closedイベント /// </summary> /// <param name="e"></param> protected override void OnClosed(EventArgs e) { base.OnClosed(e); GlobalHook_Mouse.ClearEvent(); }
/// <summary> /// 停止ボタン_クリック /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void stopButton_Click(object sender, EventArgs e) { this.stopButton.Enabled = false; GlobalHook_Mouse.Stop(); this.startButton.Enabled = true; }