public void Clear() { m_LastModified = new XmlDateTime(DateTime.MinValue); m_LastModifyingPerson = new XmlString(String.Empty); m_LanguageUsed = new XmlLanguage(); m_TranslatedString = new XmlString(String.Empty); }
public void Clear () { m_LastModified = new XmlDateTime (DateTime.MinValue); m_LastModifyingPerson = new XmlString (String.Empty); m_LanguageUsed = new XmlLanguage (); m_TranslatedString = new XmlString (String.Empty); }
/// <summary> /// Update a translated word for it's associated language /// </summary> /// <param name="destinationLanguage">Destination language</param> /// <param name="translatedText">Word translated into destination language</param> /// <param name="lastModifyingPerson">Just keep a trace of person who have modified this translation</param> /// <param name="lastModificationTime">Keep last modification time</param> public void Update (Language destinationLanguage, string translatedText, string lastModifyingPerson, DateTime lastModificationTime) { if (lastModificationTime != DateTime.MinValue) m_LastModified = new XmlDateTime (lastModificationTime); if ((lastModifyingPerson != null) && (lastModifyingPerson.Length != 0)) m_LastModifyingPerson = new XmlString (lastModifyingPerson); if (destinationLanguage != Language.Invalid) { m_LanguageUsed = new XmlLanguage (); m_LanguageUsed.Language = destinationLanguage; } if ((translatedText != null) && (translatedText.Length != 0)) m_TranslatedString = new XmlString (translatedText); }
/// <summary> /// Update a translated word for it's associated language /// </summary> /// <param name="destinationLanguage">Destination language</param> /// <param name="translatedText">Word translated into destination language</param> /// <param name="lastModifyingPerson">Just keep a trace of person who have modified this translation</param> /// <param name="lastModificationTime">Keep last modification time</param> public void Update(Language destinationLanguage, string translatedText, string lastModifyingPerson, DateTime lastModificationTime) { if (lastModificationTime != DateTime.MinValue) { m_LastModified = new XmlDateTime(lastModificationTime); } if ((lastModifyingPerson != null) && (lastModifyingPerson.Length != 0)) { m_LastModifyingPerson = new XmlString(lastModifyingPerson); } if (destinationLanguage != Language.Invalid) { m_LanguageUsed = new XmlLanguage(); m_LanguageUsed.Language = destinationLanguage; } if ((translatedText != null) && (translatedText.Length != 0)) { m_TranslatedString = new XmlString(translatedText); } }
public void InitDefault () { m_MyInt = 69; m_MyString = "This is a test string"; m_MyXmlString = new XmlString ("Native XML string object"); m_MyFloat = 3.14f; m_MyXmlDateTime = new XmlDateTime (DateTime.Now); m_MyXmlColor = new XmlColor (Color.BurlyWood); m_MyXmlSizeF2d = new XmlSizeF2d (452.62f, 895.7989f); m_MyXmlItemKeyAndValue = new XmlItemKeyAndValue ("KeyNameToUse", m_MyXmlColor); m_MyXmlTranslatorElement = new XmlTranslatorElement ("MyInternalName", 0); m_MyXmlTranslatorElement.AddOrUpdate (Language.English, "My translated text", "The last modifiying person", DateTime.Now); m_MyXmlTranslatorElement.AddOrUpdate (Language.German, "My translated text in German", "The last modifiying person", DateTime.Now); m_MyXmlPen = new XmlPen (Color.Violet, 20); m_MyArrayList = new ArrayList (); m_MyArrayList.Add (this.MyInt); m_MyArrayList.Add (this.MyFloat); m_MyArrayList.Add (this.MyString); m_MyArrayList.Add (this.MyXmlString); m_MyXmlList = new XmlList (); m_MyXmlList.Add (this.MyInt); m_MyXmlList.Add (this.MyFloat); m_MyXmlList.Add (this.MyString); m_MyXmlList.Add (this.MyXmlString); m_MyXmlHashtable = new XmlHashtable (); m_MyXmlHashtable.Add ("HashElement1", m_MyInt); m_MyXmlHashtable.Add ("HashElement2", m_MyString); m_MyXmlHashtable.Add ("HashElement3", m_MyXmlString); m_MyXmlHashtable.Add ("HashElement4", m_MyFloat); m_MyXmlHashtable.Add ("HashElement5", m_MyXmlList); }