Пример #1
0
        /// <summary>
        /// Erzeugt eine neue Beschreibung.
        /// </summary>
        /// <param name="collection">Die zugehörige Verwaltung der aktiven Geräteprofile.</param>
        /// <param name="profileName">Der Name des zugehörigen Geräteprofils.</param>
        public ProfileState(ProfileStateCollection collection, string profileName)
        {
            // Remember
            ProfileName = profileName;
            Collection  = collection;

            // Create program guide manager
            ProgramGuide = new ProgramGuideManager(Collection.Server.JobManager, profileName);
        }
Пример #2
0
        /// <summary>
        /// Erzeugt eine neue Instanz.
        /// </summary>
        /// <param name="rootDirectory">Das Arbeitsverzeichnis f?r die Auftragsverwaltung.</param>
        public VCRServer(DirectoryInfo rootDirectory)
        {
            // Report
            Tools.ExtendedLogging("Using Root Directory {0}", rootDirectory.FullName);

            // Prepare profiles
            VCRProfiles.Reset();

            // Create job manager and start it up
            JobManager = new JobManager(new DirectoryInfo(Path.Combine(rootDirectory.FullName, "Jobs")), this);

            // Create profile state manager and start it up
            Profiles = new ProfileStateCollection(this);

            // Register with power manager
            PowerManager.OnPowerUp += BeginNewPlan;
        }