예제 #1
0
        public DaemonController(WindarPaths paths)
        {
            Paths = paths;
            Instance = this;
            Started = false;

            // Create user AppData files if necessary.
            Cmd<InitAppData>.Create().Run();
        }
예제 #2
0
파일: Program.cs 프로젝트: stever/windar
        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;
        }