pascalabcnet/VisualPascalABCNET/DS/Classes.cs
Бондарев Иван e6e67c193c initial commit
2015-05-14 21:35:07 +02:00

36 lines
893 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace VisualPascalABC
{
public class Form1StringResources
{
public static readonly string Prefix = "VP_MF_";
public static string Get(string key)
{
return PascalABCCompiler.StringResources.Get(Prefix + key);
}
public static void SetTextForAllControls(Control c)
{
PascalABCCompiler.StringResources.SetTextForAllObjects(c, Prefix);
}
}
public class RuntimeExceptionsStringResources
{
public static readonly string Prefix = "RUNTIME_EXCEPTION";
public static string Get(string key)
{
string res=PascalABCCompiler.StringResources.Get(Prefix + key);
if (res != Prefix + key)
return res;
return key;
}
}
}