private void SaveLanguage()
        {
            LanguageInfo languageInfo = new LanguageInfo();
            languageInfo.Language = Language;

            XmlWriterSettings setting = new XmlWriterSettings();
            setting.Indent = true;
            setting.IndentChars = "  ";
            setting.NewLineOnAttributes = true;
            setting.OmitXmlDeclaration = true;

            try
            {
                string filename = AppDomain.CurrentDomain.BaseDirectory + @"config\Language\Language.xml";
                FileStream fs = new FileStream(filename, FileMode.Create);
                XmlWriter xw = XmlWriter.Create(fs, setting);
                XmlSerializer xs = new XmlSerializer(languageInfo.GetType());
                xs.Serialize(xw, languageInfo);
            }
            catch
            {
            }
        }
        private void LoadLanguageInfo()
        {
            try
            {
                LanguageInfo languageInfo = new LanguageInfo();
                string filename = AppDomain.CurrentDomain.BaseDirectory + @"config\Language\language.xml";
                if (File.Exists(filename) == false) return;

                FileStream fs = new FileStream(filename, FileMode.Open);
                XmlReader sr = XmlReader.Create(fs);
                XmlSerializer xs = new XmlSerializer(languageInfo.GetType());
                languageInfo = (LanguageInfo)xs.Deserialize(sr);

                Language = languageInfo.Language;
            }
            catch (Exception e)
            {
                LogManager.Instance.WriteSystemLog(e.ToString());
            }
        }