private static void Main(string[] args)
        {
            OnlineStore onlineStore = new OnlineStore();

            onlineStore.MainMenu();
            Console.ReadLine();
        }
Esempio n. 2
0
        public static int StartingNumber()
        {
            int startingNumber;

            if (!File.Exists("C:\\Dev\\Movies.txt"))
            {
                startingNumber = 1;
            }
            else
            {
                OnlineStore   onlineStore = new OnlineStore();
                List <string> myMovies    = onlineStore.RetriveMovieLog("C:\\Dev\\Movies.txt");
                string[]      myLastMovie = myMovies[myMovies.Count - 1].Split(',');
                startingNumber = int.Parse(myLastMovie[0]) + 1;
            }
            return(startingNumber);
        }