Exemplo n.º 1
0
        static void Main(string[] args)
        {
            try
            {
                //All the decks
                DeckItem resourceDeck   = new DeckItem();
                DeckItem technologyDeck = new DeckItem();
                DeckItem eventDeck      = new DeckItem();

                //Path to project
                string projectPath = AssemblyDirectory.Replace(@"\bin", "").Replace(@"\Debug", "") + '\\';

                //Read Google SpreadSheet
                if (ReadSpreadSheet(ref resourceDeck, ref technologyDeck, ref eventDeck, projectPath))
                {
                    //Attempt to draw the cards
                    Console.WriteLine("Finished reading spreadsheet. Attempting to draw deck");

                    resourceDeck.DrawDeck(projectPath, "Resource Deck");
                    technologyDeck.DrawDeck(projectPath, "Technology Deck");
                    eventDeck.DrawDeck(projectPath, "Event Deck");

                    Console.WriteLine("Finished drawing all decks");
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Unexpected error: " + ex.ToString());
                Console.WriteLine("Press any key to finish...");
                Console.Read();
            }
        }
Exemplo n.º 2
0
 public static bool RunningInAzure()
 {
     return(!AssemblyDirectory.ToLower().Contains("c:"));
 }