protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            NetDecks.DownloadDecksAsync();
        }
Exemple #2
0
        private static void Main(string[] args)
        {
            List<Card> tempa = MyCollection.Cards;
            NetDecks.DownloadDecks();
            GoogleSpreedsheetWriter temp = new GoogleSpreedsheetWriter();
            temp.WriteDecks();

            Console.WriteLine("DONE");
            Console.ReadLine();
        }
        private void LoadDecks(bool force = false)
        {
            gridViewDecks.DataSource = force ? NetDecks.DownloadDecks() : NetDecks.Decks;

            if (!force)
            {
                return;
            }

            gridCardValuation.DataSource = NetDecks.Valuations;
            gridPack.DataSource          = (from SetEnum sType in Enum.GetValues(typeof(SetEnum)) select new Pack(sType)).Where(x => x.CanBuy).ToList();
        }
 private void btnWFeed_Click(object sender, EventArgs e)
 {
     Clipboard.SetText(NetDecks.GetWeightedFeed());
 }
 // GET api/values/5
 public IEnumerable <Deck> Get(int id)
 {
     return(NetDecks.DownloadDecks());
 }