Пример #1
0
 private void LoadFiles()
 {
     if (!FileUtils.HasQuota(20480))
     {
         IncreaseQuota iq = new IncreaseQuota(20480);
         iq.Closed += new EventHandler(iq_Closed);
         iq.Show();
     }
     else
     {
         iq_Closed(this, EventArgs.Empty);
     }
 }
Пример #2
0
 private void LoadFiles() {
     try {
         if (!FileUtils.HasQuota(131072)) {
             IncreaseQuota iq = new IncreaseQuota(131072);
             iq.Closed += new EventHandler(iq_Closed);
             iq.Show();
         } else iq_Closed(this, EventArgs.Empty);
     } catch (IsolatedStorageException) {
         new Base.ErrorBox("Issue Checking Storage Quota",
             "Rawr does not have permission to create a Storage Cache which is necessary to run the program.",
             "Please check your Silverlight Settings on the Permissions Tab and remove the Deny for Rawr. This will make the webpage prompt you to allow Rawr again on Refresh.").Show();
     }
 }
Пример #3
0
        private void iq_Closed(object sender, EventArgs e)
        {
            IncreaseQuota iq = sender as IncreaseQuota;

            if (iq == null || iq.DialogResult.GetValueOrDefault(false))
            {
                Calculations.RegisterModel(typeof(Rawr.Bear.CalculationsBear));
                Calculations.RegisterModel(typeof(Rawr.Cat.CalculationsCat));
                Calculations.RegisterModel(typeof(Rawr.DPSDK.CalculationsDPSDK));
                Calculations.RegisterModel(typeof(Rawr.DPSWarr.CalculationsDPSWarr));
                Calculations.RegisterModel(typeof(Rawr.Elemental.CalculationsElemental));
                Calculations.RegisterModel(typeof(Rawr.Enhance.CalculationsEnhance));
                Calculations.RegisterModel(typeof(Rawr.Healadin.CalculationsHealadin));
                Calculations.RegisterModel(typeof(Rawr.HealPriest.CalculationsHealPriest));
                Calculations.RegisterModel(typeof(Rawr.Hunter.CalculationsHunter));
                Calculations.RegisterModel(typeof(Rawr.Mage.CalculationsMage));
                Calculations.RegisterModel(typeof(Rawr.Moonkin.CalculationsMoonkin));
                Calculations.RegisterModel(typeof(Rawr.ProtPaladin.CalculationsProtPaladin));
                Calculations.RegisterModel(typeof(Rawr.ProtWarr.CalculationsProtWarr));
                Calculations.RegisterModel(typeof(Rawr.RestoSham.CalculationsRestoSham));
                Calculations.RegisterModel(typeof(Rawr.Retribution.CalculationsRetribution));
                Calculations.RegisterModel(typeof(Rawr.Rogue.CalculationsRogue));
                Calculations.RegisterModel(typeof(Rawr.ShadowPriest.CalculationsShadowPriest));
                Calculations.RegisterModel(typeof(Rawr.TankDK.CalculationsTankDK));
                Calculations.RegisterModel(typeof(Rawr.Tree.CalculationsTree));
                Calculations.RegisterModel(typeof(Rawr.Warlock.CalculationsWarlock));

                string[] files = new List <string>(Classes.Keys).ToArray();

                Buff.LoadDefaultBuffs(null, 85);
                Enchant.LoadDefaultEnchants();
                Tinkering.LoadDefaultTinkerings();

                FileUtils f = new FileUtils(files, progressUpdated);
                f.DownloadIfNotExists(new EventHandler(filesLoaded));
            }
            else
            {
                new Base.ErrorBox("Not Enough Storage Space",
                                  "Rawr will not work if you do not allow it to increase its available "
                                  + "storage size. Please refresh this page and accept to continue.").Show();
            }
        }
Пример #4
0
 private void LoadFiles()
 {
     try {
         if (!FileUtils.HasQuota(131072))
         {
             IncreaseQuota iq = new IncreaseQuota(131072);
             iq.Closed += new EventHandler(iq_Closed);
             iq.Show();
         }
         else
         {
             iq_Closed(this, EventArgs.Empty);
         }
     } catch (IsolatedStorageException) {
         new Base.ErrorBox("Issue Checking Storage Quota",
                           "Rawr does not have permission to create a Storage Cache which is necessary to run the program.",
                           "Please check your Silverlight Settings on the Permissions Tab and remove the Deny for Rawr. This will make the webpage prompt you to allow Rawr again on Refresh.").Show();
     }
 }