private void setnotificationbtn_Click(object sender, EventArgs e) { if (notification) { MouseHook.Start(); MouseHook.MouseAction += new EventHandler(Eventnotification); notification = false; } else { MouseHook.stop(); } }
private void setmarketbtn_Click(object sender, EventArgs e) { if (market) { MouseHook.Start(); MouseHook.MouseAction += new EventHandler(Eventmarket); market = false; } else { MouseHook.stop(); } }