Beispiel #1
0
        private void btnLeadFormAlignAreaSet_Click(object sender, EventArgs e)
        {
            var          _GetRegionEvent = GetRegionEvent;
            CogRectangle _Region         = GetRegionEvent?.Invoke();

            var _DrawRegionEvent = DrawRegionEvent;

            _DrawRegionEvent?.Invoke(_Region, true);

            LeadFormAlignArea = new RectangleD();
            LeadFormAlignArea.SetCenterWidthHeight(_Region.CenterX, _Region.CenterY, _Region.Width, _Region.Height);
        }
Beispiel #2
0
        private void btnGateRemainingAreaSet_Click(object sender, EventArgs e)
        {
            #region Button Status Set
            btnGateRemainingAreaShow.Enabled = true;
            btnGateRemainingAreaSet.Enabled  = false;
            #endregion

            var          _GetRegionEvent = GetRegionEvent;
            CogRectangle _Region         = GetRegionEvent?.Invoke();

            var _DrawRegionEvent = DrawRegionEvent;
            _DrawRegionEvent?.Invoke(_Region, true);

            GateRemainingArea = new RectangleD();
            GateRemainingArea.SetCenterWidthHeight(_Region.CenterX, _Region.CenterY, _Region.Width, _Region.Height);
        }
Beispiel #3
0
        private void btnLeadLengthAreaSet_Click(object sender, EventArgs e)
        {
            #region Button Status Set
            btnLeadLengthAreaShow.Enabled = true;
            btnLeadLengthAreaSet.Enabled  = false;
            #endregion

            var          _GetRegionEvent = GetRegionEvent;
            CogRectangle _Region         = GetRegionEvent?.Invoke();

            var _DrawRegionEvent = DrawRegionEvent;
            _DrawRegionEvent?.Invoke(_Region, true);

            LeadMeasureArea = new RectangleD();
            LeadMeasureArea.SetCenterWidthHeight(_Region.CenterX - -BodyCenterOffsetX, _Region.CenterY - BodyCenterOffsetY, _Region.Width, _Region.Height);
        }
Beispiel #4
0
        private void btnMaskingSet_Click(object sender, EventArgs e)
        {
            var          _GetRegionEvent = GetRegionEvent;
            CogRectangle _Region         = GetRegionEvent?.Invoke();

            var _DrawRegionEvent = DrawRegionEvent;

            _DrawRegionEvent?.Invoke(_Region, true);

            RectangleD _MaskingArea = new RectangleD();

            _MaskingArea.SetCenterWidthHeight(_Region.CenterX, _Region.CenterY, _Region.Width, _Region.Height);
            BodyMaskingAreaList.Add(_MaskingArea);

            var _DrawMaskingRegionEven = DrawMaskingRegionEven;

            _DrawMaskingRegionEven?.Invoke(BodyMaskingAreaList);
        }
Beispiel #5
0
        private void btnLeadBodyAreaSet_Click(object sender, EventArgs e)
        {
            #region Button Status Set
            btnLeadBodyAreaShow.Enabled = true;
            btnLeadBodyAreaSet.Enabled  = false;
            btnMaskingShow.Enabled      = true;
            btnMaskingAdd.Enabled       = false;
            btnMaskingSet.Enabled       = false;
            btnMaskingUndo.Enabled      = false;
            btnMaskingRedo.Enabled      = false;
            btnMaskingClear.Enabled     = false;
            #endregion

            var          _GetRegionEvent = GetRegionEvent;
            CogRectangle _Region         = GetRegionEvent?.Invoke();

            var _DrawRegionEvent = DrawRegionEvent;
            _DrawRegionEvent?.Invoke(_Region, true);

            BodyArea = new RectangleD();
            BodyArea.SetCenterWidthHeight(_Region.CenterX, _Region.CenterY, _Region.Width, _Region.Height);
        }