Esempio n. 1
0
        static void Main(string[] args)
        {
            using (FlashSpyDbContext dbContext = new FlashSpyDbContext())
            {
                Printer.PrintSuccessMessage("Listening start successful.");
                Printer.PrintInfoMessage("\nInput '/help' to get help.");

                DirectoryAdmin directoryAdmin = new DirectoryAdmin(dbContext);

                TimerCallback tc = new TimerCallback(directoryAdmin.FlashRendering);

                Timer timer = new Timer(tc, null, 0, 1000);

                AdminTools tools = new AdminTools(dbContext);

                tools.InitMenu();
            }
        }
Esempio n. 2
0
 public DirectoryAdmin(FlashSpyDbContext context)
 {
     this.dbContext     = context;
     this.copyDirectory = context.Settings.FirstOrDefault().CopyFolder;
     directories        = GetDirectories();
 }
Esempio n. 3
0
 public AdminTools(FlashSpyDbContext dbContext)
 {
     this.db = dbContext;
 }