コード例 #1
0
        protected virtual void ApplyFrameworkOptions(StringBuilder builder, string command, Project project, CommandOptions options)
        {
            lock (_lock)
            {
                if (FrameworkOptions != null && FrameworkOptions.Any())
                {
                    if (FrameworkOptions.TryGetValue(command, out ICollection <string> defaultOptions))
                    {
                        builder.AppendJoinCliOptions(defaultOptions);
                    }

                    if (FrameworkOptions.TryGetValue(FrameworkCommands.Any, out ICollection <string> anyCommandOptions))
                    {
                        builder.AppendJoinCliOptions(anyCommandOptions);
                    }
                }
            }
        }
コード例 #2
0
 private static IntPtr Create(object defaultValue, FrameworkOptions options,
                              PropertyChangedCallback propertyChangedCallback)
 {
     return(Create(defaultValue, propertyChangedCallback,
                   (def, invoke) => Noesis_CreateFrameworkPropertyMetadata_(def, (int)options, invoke)));
 }
コード例 #3
0
 public FrameworkPropertyMetadata(object defaultValue, FrameworkOptions options,
                                  PropertyChangedCallback propertyChangedCallback)
     : this(Create(defaultValue, options, propertyChangedCallback), true)
 {
 }
コード例 #4
0
 public FrameworkPropertyMetadata(object defaultValue, FrameworkOptions options)
     : this(Create(defaultValue, options, null), true)
 {
 }
コード例 #5
0
 public string GetProperty(string section, FrameworkOptions option)
 {
     return(iniHandler.GetProperty(section, option.ToString()));
 }
コード例 #6
0
 public string GetProperty(FrameworkOptions option)
 {
     return(iniHandler.GetProperty(configurationIniSection, option.ToString()));
 }