Example #1
0
        static void GetLocale()
        {
            bool local = false;

            foreach (LocalesDBC loc in Enum.GetValues(typeof(LocalesDBC)))
            {
                if (SpellData.Select().First()["SpellName_" + loc].ToString() != "")
                {
                    Locales = loc;
                    local   = true;
                    break;
                }
            }
            if (!local)
            {
                System.Windows.Forms.MessageBox.Show("Unk dbc locale, application exit");
                System.Windows.Forms.Application.Exit();
            }
        }
Example #2
0
 static void GetLocale()
 {
     bool local = false;
     foreach (LocalesDBC loc in Enum.GetValues(typeof(LocalesDBC)))
     {
         if (SpellData.Select().First()["SpellName_" + loc].ToString() != "")
         {
             Locales = loc;
             local = true;
             break;
         }
     }
     if (!local)
     {
         System.Windows.Forms.MessageBox.Show("Unk dbc locale, application exit");
         System.Windows.Forms.Application.Exit();
     }
 }