public static void LoadEvosFromPacket(string[] parse)
 {
     try {
         int n = 1;
         for (int i = 0; i <= MaxInfo.MaxEvolutions; i++) {
             dataLoadPercent = System.Math.Min(99, Logic.MathFunctions.CalculatePercent(i, MaxInfo.MaxEvolutions));
             mEvos[i] = new Evolution();
             mEvos[i].Name = parse[n + 1];
             n += 2;
             ((Windows.winLoading)Windows.WindowSwitcher.FindWindow("winLoading")).UpdateLoadText("Recieving Data... " + DataManager.AverageLoadPercent().ToString() + "%");
         }
         dataLoadPercent = 100;
     } catch (Exception ex) {
         Exceptions.ExceptionHandler.OnException(ex);
     }
 }
Exemple #2
0
 public static void LoadEvosFromPacket(string[] parse)
 {
     try {
         int n = 1;
         for (int i = 0; i <= MaxInfo.MaxEvolutions; i++)
         {
             dataLoadPercent = System.Math.Min(99, Logic.MathFunctions.CalculatePercent(i, MaxInfo.MaxEvolutions));
             mEvos[i]        = new Evolution();
             mEvos[i].Name   = parse[n + 1];
             n += 2;
             ((Windows.winLoading)Windows.WindowSwitcher.FindWindow("winLoading")).UpdateLoadText("Recieving Data... " + DataManager.AverageLoadPercent().ToString() + "%");
         }
         dataLoadPercent = 100;
     } catch (Exception ex) {
         Exceptions.ExceptionHandler.OnException(ex);
     }
 }