Ejemplo n.º 1
0
        public DaemonController(WindarPaths paths)
        {
            Paths = paths;
            Instance = this;
            Started = false;

            // Create user AppData files if necessary.
            Cmd<InitAppData>.Create().Run();
        }
Ejemplo n.º 2
0
        Program()
        {
            Instance = this;

            Config = new ConfigGroup();
            Paths = new WindarPaths(Application.StartupPath);
            Daemon = new DaemonController(Paths);
            ScanQueue = new Queue<string>();
            MainForm = new MainForm();
            Tray = new Tray();
            PluginHost = new PluginHost(Paths);
            WaitingDialog = new WaitingDialog();

            // Register command event handlers.
            Daemon.ScanCompleted += ScanCompleted;
            Daemon.PlaydarStopped += PlaydarStopped;
            Daemon.PlaydarStarted += PlaydarStarted;
            Daemon.PlaydarStartFailed += PlaydarStartFailed;
        }