public PostfixOptionsViewModel([NotNull] Lifetime lifetime, [NotNull] OptionsSettingsSmartContext settings, [NotNull] PostfixTemplatesManager templatesManager) { mySettingsStore = settings; myTemplatesManager = templatesManager; Templates = new ObservableCollection<PostfixTemplateViewModel>(); ShowPostfixTemplates = new Property<bool>(lifetime, "ShowPostfixTemplates"); ShowStaticMembers = new Property<bool>(lifetime, "ShowStaticMembers"); ShowEnumHelpers = new Property<bool>(lifetime, "ShowEnumHelpers"); ShowLengthCountItems = new Property<bool>(lifetime, "ShowLengthCountItems"); UseBracesForStatements = new Property<bool>(lifetime, "UseBracesForStatements"); InvokeParameterInfo = new Property<bool>(lifetime, "InvokeParameterInfo"); SearchVarOccurrences = new Property<bool>(lifetime, "SearchVarOccurrences"); Reset = new DelegateCommand(ResetExecute); settings.SetBinding(lifetime, PostfixSettingsAccessor.ShowPostfixItems, ShowPostfixTemplates); settings.SetBinding(lifetime, PostfixSettingsAccessor.ShowStaticMethods, ShowStaticMembers); settings.SetBinding(lifetime, PostfixSettingsAccessor.ShowEnumHelpers, ShowEnumHelpers); settings.SetBinding(lifetime, PostfixSettingsAccessor.BracesForStatements, UseBracesForStatements); settings.SetBinding(lifetime, PostfixSettingsAccessor.InvokeParameterInfo, InvokeParameterInfo); settings.SetBinding(lifetime, PostfixSettingsAccessor.ShowLengthCountItems, ShowLengthCountItems); settings.SetBinding(lifetime, PostfixSettingsAccessor.SearchVarOccurrences, SearchVarOccurrences); FillTemplates(); }
public PostfixOptionsViewModel([NotNull] Lifetime lifetime, [NotNull] OptionsSettingsSmartContext settings, [NotNull] PostfixTemplatesManager templatesManager) { mySettingsStore = settings; myTemplatesManager = templatesManager; Templates = new ObservableCollection <PostfixTemplateViewModel>(); ShowPostfixTemplates = new Property <bool>(lifetime, "ShowPostfixTemplates"); ShowStaticMembers = new Property <bool>(lifetime, "ShowStaticMembers"); ShowEnumHelpers = new Property <bool>(lifetime, "ShowEnumHelpers"); ShowLengthCountItems = new Property <bool>(lifetime, "ShowLengthCountItems"); UseBracesForStatements = new Property <bool>(lifetime, "UseBracesForStatements"); InvokeParameterInfo = new Property <bool>(lifetime, "InvokeParameterInfo"); SearchVarOccurrences = new Property <bool>(lifetime, "SearchVarOccurrences"); Reset = new DelegateCommand(ResetExecute); settings.SetBinding(lifetime, PostfixSettingsAccessor.ShowPostfixItems, ShowPostfixTemplates); settings.SetBinding(lifetime, PostfixSettingsAccessor.ShowStaticMethods, ShowStaticMembers); settings.SetBinding(lifetime, PostfixSettingsAccessor.ShowEnumHelpers, ShowEnumHelpers); settings.SetBinding(lifetime, PostfixSettingsAccessor.BracesForStatements, UseBracesForStatements); settings.SetBinding(lifetime, PostfixSettingsAccessor.InvokeParameterInfo, InvokeParameterInfo); settings.SetBinding(lifetime, PostfixSettingsAccessor.ShowLengthCountItems, ShowLengthCountItems); settings.SetBinding(lifetime, PostfixSettingsAccessor.SearchVarOccurrences, SearchVarOccurrences); FillTemplates(); }
public PostfixOptionsPage([NotNull] Lifetime lifetime, [NotNull] OptionsSettingsSmartContext store, [NotNull] PostfixTemplatesManager templatesManager) { InitializeComponent(); DataContext = new PostfixOptionsViewModel(lifetime, store, templatesManager); Control = this; }
public PostfixOptionsViewModel( [NotNull] Lifetime lifetime, [NotNull] OptionsSettingsSmartContext store, [NotNull] PostfixTemplatesManager templatesManager) { myStore = store; myTemplatesManager = templatesManager; Templates = new ObservableCollection<PostfixTemplateViewModel>(); UseBracesForEmbeddedStatements = new Property<bool>(lifetime, "UseBracesForEmbeddedStatements"); ShowStaticMembersInCodeCompletion = new Property<bool>(lifetime, "ShowStaticMethodsInCodeCompletion"); ShowEnumHelpersInCodeCompletion = new Property<bool>(lifetime, "ShowEnumHelpersInCodeCompletion"); Reset = new DelegateCommand(ResetExecute); store.SetBinding(lifetime, PostfixSettingsAccessor.UseBracesForEmbeddedStatements, UseBracesForEmbeddedStatements); store.SetBinding(lifetime, PostfixSettingsAccessor.ShowStaticMethodsInCodeCompletion, ShowStaticMembersInCodeCompletion); store.SetBinding(lifetime, PostfixSettingsAccessor.ShowEnumHelpersInCodeCompletion, ShowEnumHelpersInCodeCompletion); FillTemplates(); }
protected PostfixTemplatesItemProviderBase([NotNull] PostfixTemplatesManager <TPostfixTemplateContext> templatesManager) { myTemplatesManager = templatesManager; }
public CSharpPostfixItemProvider([NotNull] Lifetime lifetime, [NotNull] PostfixTemplatesManager templatesManager) { myLifetime = lifetime; myTemplatesManager = templatesManager; }