mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-28 09:15:46 +02:00
18 lines
637 B
C#
18 lines
637 B
C#
using System;
|
|
using System.IO;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace TweetDck.Resources{
|
|
static class ScriptLoader{
|
|
public static string LoadResource(string name){
|
|
try{
|
|
return File.ReadAllText(name,Encoding.UTF8);
|
|
}catch(Exception ex){
|
|
MessageBox.Show("Unfortunately, "+Program.BrandName+" could not load the "+name+" file. The program will continue running with limited functionality.\r\n\r\n"+ex.Message,Program.BrandName+" Has Failed :(",MessageBoxButtons.OK,MessageBoxIcon.Error);
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|