Beispiel #1
0
        /// <summary>
        /// Loads the appropriate preview file when the combo box selection changes.
        /// </summary>
        private void PreviewFileComboBox_SelectionChanged(object sender,
                                                          SelectionChangedEventArgs e)
        {
            ComboPath cpath = (ComboPath)previewFileComboBox.SelectedItem;

            if (cpath == null || string.IsNullOrEmpty(cpath.PathName))
            {
                // nothing to do
                return;
            }

            LoadPreviewFile(cpath.PathName);
        }
Beispiel #2
0
        private void previewFileComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboPath cpath = (ComboPath)previewFileComboBox.SelectedItem;

            if (string.IsNullOrEmpty(cpath.PathName))
            {
                // nothing to do
                return;
            }

            previewTextBox.BackColor = SystemColors.Window;
            previewTextBox.Enabled   = true;
            LoadPreviewFile(cpath.PathName);
        }