/// <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); }
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); }