Esempio n. 1
0
        /// <summary>
        /// Handles the Click event of FocusedImageAppearance object.
        /// </summary>
        private void focusedImageAppearance_Click(object sender, EventArgs e)
        {
            // if focused image appearance does not exist
            if (_focusedImageAppearance == null)
            {
                // create focused image appearance
                _focusedImageAppearance = new ThumbnailAppearance(_viewer.FocusedImageAppearance);
            }

            // create image appearance settings form
            using (ThumbnailAppearanceSettingsForm dialog =
                       new ThumbnailAppearanceSettingsForm(_focusedImageAppearance, "Focused Image Appearance Settings"))
            {
                // show dialog
                dialog.ShowDialog();
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Handles the Click event of EditThumbnailAppearanceButton object.
        /// </summary>
        private void editThumbnailAppearanceButton_Click(object sender, EventArgs e)
        {
            // get selected appearance
            ThumbnailAppearance appearance = GetSelectedAppearance();

            // create appearance settings form
            using (ThumbnailAppearanceSettingsForm thumbnailAppearanceSettingsDialog =
                       new ThumbnailAppearanceSettingsForm(appearance))
            {
                // if appearance is changed
                if (thumbnailAppearanceSettingsDialog.ShowDialog() == DialogResult.OK)
                {
                    // init appearance
                    InitAppearance(appearance);
                }
            }
        }