Exemple #1
0
 /// <summary>
 /// Returns all Language-specific Strings
 /// </summary>
 /// <param name="l">the Language</param>
 /// <returns>List of Strings</returns>
 public StrItemList LanguageItems(StrLanguage l)
 {
     if (l == null)
     {
         return(new StrItemList());
     }
     return(LanguageItems((Data.MetaData.Languages)l.Id));
 }
Exemple #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="index">hack to give line numbers</param>
 /// <param name="lid">Language ID (byte)</param>
 /// <param name="title">Item Title</param>
 /// <param name="desc">Item Description</param>
 public StrToken(int index, byte lid, string title, string desc)
 {
     this.index = index;
     this.lid   = new StrLanguage(lid);
     this.title = title;
     this.desc  = desc;
     dirty      = false;
 }
Exemple #3
0
        /*
         * File format is:
         * byte - Language ID
         * char[]\0 - Title
         * char[]\0 - Description
         */
        internal static void Unserialize(BinaryReader reader, Hashtable lines)
        {
            StrLanguage lid   = new StrLanguage(reader.ReadByte());
            string      title = StreamHelper.ReadPChar(reader);
            string      desc  = StreamHelper.ReadPChar(reader);

            if (lines[lid.Id] == null)
            {
                lines[lid.Id] = new StrItemList();                                    // Add a new StrItemList if needed
            }
            ((StrItemList)lines[lid.Id]).Add(new StrToken(((StrItemList)lines[lid.Id]).Count, lid, title, desc));
        }
Exemple #4
0
        public override void Sort()
        {
            StrLanguage sl = new StrLanguage(0);

            base.Sort(sl);
        }
Exemple #5
0
 public bool Contains(StrLanguage strlng)
 {
     return(base.Contains(strlng));
 }
Exemple #6
0
 public void Remove(StrLanguage strlng)
 {
     base.Remove(strlng);
 }
Exemple #7
0
 public void Insert(int index, StrLanguage strlng)
 {
     base.Insert(index, strlng);
 }
Exemple #8
0
 public int Add(StrLanguage strlng)
 {
     return(base.Add(strlng));
 }