Ejemplo n.º 1
0
        public static Application GetApp()
        {
            if (_app == null)
            {
                _app = new FileManagerApp();
            }

            return(_app);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            HttpServer.GetServer().AddApplication(FileManagerApp.GetApp());
            HttpServer.GetServer().RunApplication(FileManagerApp.GetApp().Name, 8080);
            if (File.Exists("Passwords.txt"))
            {
                StreamReader reader = new StreamReader("Passwords.txt");
                if ((reader.ReadLine() == null))
                {
                    reader.Close();
                    PasswordManager.GeneratePasswords();
                }
            }
            else
            {
                PasswordManager.GeneratePasswords();
            }

            Console.ReadLine();
        }