private void HWndUnit_SizeChanged(object sender, EventArgs e) { if (this.DesignMode) { return; } HWndCtrl.ResetWindow(); hWndCtrl.Repaint(); }
/// <summary> /// Sets the sign of a ROI object to the value 'mode' (MODE_ROI_NONE, /// MODE_ROI_POS,MODE_ROI_NEG) /// </summary> public void SetROISign(ROIOperation mode) { stateROIOperation = mode; if (activeROIidx != -1) { (ROIList[activeROIidx]).OperatorFlag = stateROIOperation; viewController.Repaint(); TiggerROINotifyEvent(new ViewEventArgs(ViewMessage.ChangedROISign)); } }
/// <summary> /// Sets the sign of a ROI object to the value 'mode' (MODE_ROI_NONE, /// MODE_ROI_POS,MODE_ROI_NEG) /// </summary> public void SetROISign(ROIOperation mode) { stateROIOperation = mode; if (activeROIidx != -1) { if (stateROIOperation == ROIOperation.Tuya) { return; } ROIList[activeROIidx].OperatorFlag = stateROIOperation; if (viewController != null) { viewController.Repaint(); } TiggerROINotifyEvent(new ViewEventArgs(ViewMessage.ChangedROISign)); } }