示例#1
0
        public static bool GetIcon(this ExternalToolConfiguration This, string Source, string Destination)
        {
            var Args = new GetFileIconParameters()
            {
                Source_File = Source,
                Dest_File   = Destination
            };

            return(This.GetIcon(Args));
        }
示例#2
0
        static void Main(string[] args)
        {
            Badger.Common.Diagnostics.Logging.ApplySimpleConfiguation();

            var Logger = log4net.LogManager.GetLogger("GetIcon");

            try {
                var Options = new GetFileIconParameters();


                var Parser = new Mono.Options.OptionSet()
                {
                    {
                        $@"{nameof(GetFileIconParameters.Source_File)}=",
                        "The full path to the executable that will be used for signing executables.",
                        x => {
                            Options.Source_File = x;
                        }
                    },

                    {
                        $@"{nameof(GetFileIconParameters.Dest_File)}=",
                        "The full path to the executable that will be used for signing executables.",
                        x => {
                            Options.Dest_File = x;
                        }
                    },
                };

                Parser.Parse(args);

                Parser.WriteOptionDescriptions(Console.Out);

                ExtractTo(Options);
            } catch (Exception ex) {
                Logger.Error(ex);
            }
        }
示例#3
0
 public static bool GetIcon(this ExternalToolConfiguration This, GetFileIconParameters Args)
 {
     return(This.Run(Args));
 }
示例#4
0
 private static void ExtractTo(GetFileIconParameters options)
 {
     ExtractTo(options.Source_File, options.Dest_File);
 }