private void OnConversionProfilesViewOnCurrentChanged(object sender, EventArgs e) { UpdateTabControls(ViewModel.CurrentProfile); if (ViewModel.CurrentProfile != null) { DocumentTabUserControl.UpdateFontLabel(ViewModel.CurrentProfile.Stamping); } }
public ProfileSettingsWindow(PdfCreatorSettings settings, GpoSettings gpoSettings) { InitializeComponent(); ViewModel = CreateViewModel(settings, gpoSettings); ViewModel.ConversionProfilesView.CurrentChanged += OnConversionProfilesViewOnCurrentChanged; ViewModel.CurrentProfilePropertyChanged(); AddActions(); UpdateTabControls(ViewModel.CurrentProfile); if (ViewModel.CurrentProfile != null) { DocumentTabUserControl.UpdateFontLabel(ViewModel.CurrentProfile.Stamping); } }