예제 #1
0
 public void setState(State state, ImageDisplayMode imageDisplayMode)
 {
     this._state = state;
     this.imageDisplayMode = imageDisplayMode;
 }
예제 #2
0
        private void UpdateRightImgBox(System.Drawing.Image img, ImageDisplayMode imgDisplayMode)
        {
            _logger.Debug("UpdateRightImgBox with [{0}] mode", imgDisplayMode);

            this._rightImgBox.Image = img;
            switch (imgDisplayMode)
            {
                case ImageDisplayMode.FitToWindow:
                    this._rightImgBox.ZoomToFit();
                    break;
                case ImageDisplayMode.ActualSize:
                    this._rightImgBox.ActualSize();
                    break;
            }
        }
예제 #3
0
 public void SetCommand(ImageDisplayCommand command)
 {
     this._command = command;
     this.Status = this._command.GetStatus();
 }