예제 #1
0
        public void SetImageBox(ImageBoxEx imgBox)
        {
            if (_imgBox != null)
            {
                _imgBox.SelectionRegionChanged -= this._imgBox_SelectionRegionChanged;
                _imgBox.ImageChanged           -= this._imgBox_ImageChanged;
            }

            _imgBox = imgBox;
            _imgBox.SelectionRegionChanged += this._imgBox_SelectionRegionChanged;
            _imgBox.ImageChanged           += this._imgBox_ImageChanged;
        }
예제 #2
0
        public void SetImageBox(ImageBoxEx imgBox)
        {
            if (_imgBox != null)
            {
                _imgBox.MouseMove -= _imgBox_MouseMove;
                _imgBox.Click     -= _imgBox_Click;
            }

            _imgBox = imgBox;

            _imgBox.MouseMove += _imgBox_MouseMove;
            _imgBox.Click     += _imgBox_Click;
        }