Exemplo n.º 1
0
        /// <summary>
        /// Saves the current windows state in order to restore it after full screen or slideshow modes.
        /// </summary>
        private void SaveWindowState()
        {
            _oldWindowState = WindowState;
            _oldSize = this.Size;
            _oldLocation = this.Location;
            _oldOrientation = crystalImageGridView1.Orientation;

            _imageCollapsed = imageSplitContainer.Panel1Collapsed;
            _thumbCollapsed = imageSplitContainer.Panel2Collapsed;

            _oldViewMode = _picController.CurrentViewMode;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Handles the double click event in the CrystalPictureShow control.
        /// </summary>
        /// <param name="sender">Sender Object.</param>
        /// <param name="e">Event arguments.</param>
        private void viewerMain_DoubleClick(object sender, EventArgs e)
        {
            if (_picController.CurrentViewMode == CrystalViewMode.SlideShowMode)
                return;

            // Double clicking on the image in the CrystalPictureShow control
            // flips back and forth between image view and split view.
            if (_picController.CurrentViewMode != CrystalViewMode.SplitView)
            {
                ShowSplitView();
                _oldViewMode = CrystalViewMode.SplitView;
            }
            else
            {
                ShowImageView();
                _oldViewMode = CrystalViewMode.ImageView;
            }
        }