private void WPF_HWindow_HMouseUp(object sender, HMouseEventArgsWPF e) { long _CurTicks = DateTime.Now.Ticks; long _Interval = _CurTicks - MouseTicks; //Console.WriteLine(_s); if (_Interval < 5000000)//500ms { MouseTicks = 0; if (_DoubleClickEvent != null) { _DoubleClickEvent(sender, e); } } else { MouseTicks = _CurTicks; } if (e.Button == MouseButton.Right && viewController.getViewState() != HWndCtrl.MODE_ROI_Create) { WPF_HWindow_ContextMenu.IsOpen = true; } }