예제 #1
0
 internal void ApplyLanguage()
 {
     if (FormMain.Instance != null)
     {
         IceChatLanguage iceChatLanguage = FormMain.Instance.IceChatLanguage;
         buttonSend.Text = iceChatLanguage.buttonSend;
     }
 }
예제 #2
0
        public void ApplyLanguage()
        {
            IceChatLanguage iceChatLanguage = FormMain.Instance.IceChatLanguage;

            label1.Text        = iceChatLanguage.quickConnectLblServer;
            label2.Text        = iceChatLanguage.quickConnectLblNick;
            label3.Text        = iceChatLanguage.quickConnectLblChannel;
            buttonConnect.Text = iceChatLanguage.quickConnectButtonConnect;
            this.Text          = iceChatLanguage.quickConnectTitle;
        }
예제 #3
0
        internal void ApplyLanguage()
        {
            IceChatLanguage iceChatLanguage = _parent.IceChatLanguage;

            headerCaption      = iceChatLanguage.buddyListHeader;
            buttonAdd.Text     = iceChatLanguage.favChanbuttonAdd;
            buttonMessage.Text = iceChatLanguage.buddyListbuttonMessage;
            buttonEdit.Text    = iceChatLanguage.favChanbuttonEdit;
            buttonRemove.Text  = iceChatLanguage.favChanbuttonRemove;
        }
예제 #4
0
        internal void ApplyLanguage()
        {
            IceChatLanguage iceChatLanguage = _parent.IceChatLanguage;

            headerCaption     = iceChatLanguage.favChanHeader;
            buttonAdd.Text    = iceChatLanguage.favChanbuttonAdd;
            buttonJoin.Text   = iceChatLanguage.favChanbuttonJoin;
            buttonEdit.Text   = iceChatLanguage.favChanbuttonEdit;
            buttonRemove.Text = iceChatLanguage.favChanbuttonRemove;
        }
예제 #5
0
파일: FormMain.cs 프로젝트: origins/ICEChat
 private void LoadLanguage()
 {
     if (File.Exists(currentLanguageFile.LanguageFile))
     {
         XmlSerializer deserializer = new XmlSerializer(typeof(IceChatLanguage));
         TextReader textReader = new StreamReader(currentLanguageFile.LanguageFile);
         iceChatLanguage = (IceChatLanguage)deserializer.Deserialize(textReader);
         textReader.Close();
         textReader.Dispose();
     }
     else
     {
         iceChatLanguage = new IceChatLanguage();
         //write the language file
         XmlSerializer serializer = new XmlSerializer(typeof(IceChatLanguage));
         TextWriter textWriter = new StreamWriter(currentFolder + Path.DirectorySeparatorChar + "Languages" + Path.DirectorySeparatorChar + "English.xml");
         serializer.Serialize(textWriter,iceChatLanguage);
         textWriter.Close();
         textWriter.Dispose();
     }
 }