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)); }
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); } }
public static bool GetIcon(this ExternalToolConfiguration This, GetFileIconParameters Args) { return(This.Run(Args)); }
private static void ExtractTo(GetFileIconParameters options) { ExtractTo(options.Source_File, options.Dest_File); }