private void Remote_Pic_MouseUp(object sender, MouseEventArgs e) { xEnd = e.Location.X; yEnd = e.Location.Y; width = xEnd - xStart; height = yEnd - yStart; Console.WriteLine("x: " + xStart + ", y: " + yStart + ", width: " + width + ", height: " + height); if (PathForm.GetValidationBtnName() != null) { HookEventsManager.WaitForUserAction(this); } else { OnBtnValidated(); } }
public void WaitForUserActions() { HookEventsManager.WaitForUserAction(this); }