private void SpecifyCropArea(object sender, RoutedEventArgs e) { CropHelper helper = new CropHelper((int)ACT.MANUAL); helper.Owner = this; helper.Show(); }
private IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled) { if (msg == WM_HOTKEY) { if (wParam.ToInt32() == hotkeyid) { CropHelper crophelper = new CropHelper((int)ACT.AUTO); crophelper.Owner = this; crophelper.Show(); } } return(IntPtr.Zero); }