using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace Test210104
{
/// <summary>
/// App.xaml 的交互逻辑
/// </summary>
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
string strdir = "";
ResourceDictionary dict = new ResourceDictionary();
string sLang = "ENG";
switch (sLang)
{
case "ENG":
strdir = AppDomain.CurrentDomain.BaseDirectory + "SystemFiles\\RT_ENG.xaml";
dict.Source = new Uri(strdir, UriKind.Absolute);
break;
case "CHN":
strdir = AppDomain.CurrentDomain.BaseDirectory + "SystemFiles\\RT_CHN.xaml";
dict.Source = new Uri(strdir, UriKind.Absolute);
break;
default:
strdir = AppDomain.CurrentDomain.BaseDirectory + "SystemFiles\\RT_ENG.xaml";
dict.Source = new Uri(strdir, UriKind.Absolute);
break;
}
this.Resources.MergedDictionaries.Clear();
this.Resources.MergedDictionaries.Add(dict);
}
}
}