From f4c7eb14ec2436ff5aa551d951d3a9ce99c1c0fd Mon Sep 17 00:00:00 2001 From: chylex <info@chylex.com> Date: Sat, 23 Apr 2016 17:53:01 +0200 Subject: [PATCH] Add ScriptLoader.LoadResources with unlimited parameters --- Resources/ScriptLoader.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Resources/ScriptLoader.cs b/Resources/ScriptLoader.cs index aacceb11..6d887415 100644 --- a/Resources/ScriptLoader.cs +++ b/Resources/ScriptLoader.cs @@ -1,7 +1,9 @@ using System; +using System.Collections.Generic; using System.IO; using System.Text; using System.Windows.Forms; +using System.Linq; namespace TweetDck.Resources{ static class ScriptLoader{ @@ -13,5 +15,9 @@ public static string LoadResource(string name){ return null; } } + + public static IList<string> LoadResources(params string[] names){ + return names.Select(LoadResource).ToList(); + } } }