Esempio n. 1
0
        public PCNameStreamSubscriptionsForm()
        {
            InitializeComponent();

            streams.CheckOnClick = true;

            if (!File.Exists("Setup.ini"))
            {
                return;
            }

            Setup.DuplicateLibrary.ChannelSubscriptions nonInstallerAccompanyingSubscriptions = null;

            List <Setup.DuplicateLibrary.ChannelSubscription> channelSubscriptions =
                new List <Setup.DuplicateLibrary.ChannelSubscription>();

            foreach (
                Setup.DuplicateLibrary.ChannelSubscription subscription in
                AppDataSingleton.Instance.FileDetectedChannelSubscriptionsLocal.SubscriptionSet)
            {
                channelSubscriptions.Add(subscription);
            }

            foreach (Setup.DuplicateLibrary.ChannelSubscription cs in channelSubscriptions)
            {
                streams.Items.Add(cs, true);
            }

            streams.DisplayMember = "ChannelName";
        }
Esempio n. 2
0
        public MergeChannelsForm()
        {
            InitializeComponent();

            streams.CheckOnClick = true;
            string dataPath = (string)GenericRegistryAccess.GetRegistryValue("HKEY_LOCAL_MACHINE\\Software\\Oxigen", "DataSettingsPath") + "data\\";

            // subscriptions either downloaded from server or existing on user's machine with existing Oxigen II.
            // (that is, subscriptions not in Setup.ini)
            Setup.DuplicateLibrary.ChannelSubscriptions nonInstallerAccompanyingSubscriptions = null;

            if (AppDataSingleton.Instance.MergeStreamsInstallation)
            {
                string existingSubscriptionsPath = dataPath + "SettingsData\\ss_channel_subscription_data.dat";

                if (File.Exists(existingSubscriptionsPath))
                {
                    nonInstallerAccompanyingSubscriptions = (Setup.DuplicateLibrary.ChannelSubscriptions)Serializer.Deserialize(typeof(Setup.DuplicateLibrary.ChannelSubscriptions), existingSubscriptionsPath, "password");
                }
            }

            List <Setup.DuplicateLibrary.ChannelSubscription> channelSubscriptions = new List <Setup.DuplicateLibrary.ChannelSubscription>();

            foreach (Setup.DuplicateLibrary.ChannelSubscription subscription in AppDataSingleton.Instance.FileDetectedChannelSubscriptionsLocal.SubscriptionSet)
            {
                channelSubscriptions.Add(subscription);
            }

            // merge Subscriptions from existing user's ss_channel_subscription_data
            // with those from Setup.ini with subscription. For existing users only.
            if (AppDataSingleton.Instance.MergeStreamsInstallation)
            {
                if (nonInstallerAccompanyingSubscriptions != null && nonInstallerAccompanyingSubscriptions.SubscriptionSet != null)
                {
                    foreach (Setup.DuplicateLibrary.ChannelSubscription subscription in nonInstallerAccompanyingSubscriptions.SubscriptionSet)
                    {
                        if (!Contains(channelSubscriptions, subscription))
                        {
                            channelSubscriptions.Add(subscription);
                        }
                    }
                }
            }

            foreach (Setup.DuplicateLibrary.ChannelSubscription cs in channelSubscriptions)
            {
                streams.Items.Add(cs, true);
            }

            streams.DisplayMember = "ChannelName";
        }
Esempio n. 3
0
        private AppDataSingleton()
        {
            _user = new User();

            _user.SoftwareMajorVersionNumber = 1;
            _user.SoftwareMinorVersionNumber = 8;

            _generalData = new GeneralData();

            _generalData.SoftwareMajorVersionNumber = 1;
            _generalData.SoftwareMinorVersionNumber = 8;

            _fileDetectedChannelSubscriptionsNet   = new Setup.UserManagementServicesLive.ChannelSubscriptions();
            _fileDetectedChannelSubscriptionsLocal = new Setup.DuplicateLibrary.ChannelSubscriptions();
            _downloadedChannelSubscriptionsLocal   = new Setup.DuplicateLibrary.ChannelSubscriptions();
            _channelSubscriptionsToUpload          = new Setup.UserManagementServicesLive.ChannelSubscriptions();

            _generalData.Properties.Add("logExchangerProcessingInterval", "1800");
            _generalData.Properties.Add("contentExchangerProcessingInterval", "1800");
            _generalData.Properties.Add("softwareUpdaterProcessingInterval", "604800000");
            _generalData.Properties.Add("serverTimeout", "5000"); // milliseconds
            _generalData.Properties.Add("primaryDomainName", ".oxigen.net");
            _generalData.Properties.Add("secondaryDomainName", ".oxigen.net");
            _generalData.Properties.Add("advertDisplayThreshold", "0.1");
            _generalData.Properties.Add("logTimerInterval", "20");
            _generalData.Properties.Add("protectedContentTime", "25");
            _generalData.Properties.Add("maxLines", "10");
            _generalData.Properties.Add("noAssetDisplayLength", "15");
            _generalData.Properties.Add("requestTimeout", "4");
            _generalData.Properties.Add("dateTimeDiffTolerance", "5"); // minutes
            _generalData.Properties.Add("daysToKeepAssetFiles", "8");

            _generalData.NoServers.Add("relayLog", "1");
            _generalData.NoServers.Add("relayConfig", "1");
            _generalData.NoServers.Add("relayChannelAssets", "1");
            _generalData.NoServers.Add("relayChannelData", "1");
            _generalData.NoServers.Add("masterConfig", "4");
            _generalData.NoServers.Add("download", "1");

            _bIs64BitSystem = Wow.Is64BitOperatingSystem;
        }