Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            Thread.Sleep(15*1000);
            //Initialize everything
            Log.FilePath = (Environment.ExpandEnvironmentVariables("%userprofile%") + @"\fog_user.log");
            AppDomain.CurrentDomain.UnhandledException += Log.UnhandledException;
            Eager.Initalize();

            Log.Entry(LogName, "Initializing");

            if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + @"\updating.info"))
            {
                Log.Entry(LogName, "Update.info found, exiting program");
                Power.SpawnUpdateWaiter(Assembly.GetExecutingAssembly().Location);
                Environment.Exit(0);
            }

            _fogService = new FOGUserService();
            _fogService.Start();

            if (RegistryHandler.GetSystemSetting("Tray").Equals("1"))
                StartTray();
        }
Exemplo n.º 2
0
 public Service()
 {
     //Initialize everything
     _fogService = new FOGSystemService();
 }