Example #1
0
        /// <summary>
        /// 程序启动后即读取配置文件config.ini
        /// 获取数据库的文件路径和语言设置
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void App_Startup(object sender, StartupEventArgs e)
        {
            AUtils t = new AUtils();
            t.ReadDbpath();
            t.ReadLang();
            t.ChooseLang(AStatic.Lang);

            
        }
Example #2
0
        private void comboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            string chooselang = dic[comboBox.SelectedIndex];

            if (chooselang != AStatic.Lang)
            {
                AStatic.Lang = chooselang;
                AUtils t = new AUtils();
                t.ChooseLang(chooselang);
                t.WriteLang();
            }
        }