Esempio n. 1
0
 private static void MigrateValue(
     [NotNull] IContextBoundSettingsStore store,
     [NotNull] Expression <Func <IdentifierTooltipSettings, AnnotationsDisplayKind> > oldSettingExpr,
     [NotNull] Expression <Func <IdentifierTooltipSettings, AttributesDisplayKind> > newSettingExpr)
 {
     if (!store.IsEntryEqualToDefault(oldSettingExpr) && store.IsEntryEqualToDefault(newSettingExpr))
     {
         AnnotationsDisplayKind annotationsDisplayKind = store.GetValue(oldSettingExpr);
         store.SetValue(newSettingExpr, annotationsDisplayKind.ToAttributesDisplayKind());
     }
 }
 protected override PresenterOptions GetPresenterOptions(IContextBoundSettingsStore settings, AnnotationsDisplayKind showAnnotations)
 => PresenterOptions.ForParameterInfo(settings, showAnnotations.ToAttributesDisplayKind());