internal static List <IdleTimer> DeSerialize()
        {
            if (serializer == null)
            {
                serializer = new ItemSerializer <List <IdleTimer> >("IdleTimerCollection.dat");
            }

            return(serializer.DeSerialize().Distinct(new DuplicateIdleTimerComparer()).ToList());
        }
        internal static void Serialize(List <RecentJira> recentJiraCollection)
        {
            if (serializer == null)
            {
                serializer = new ItemSerializer <List <RecentJira> >("RecentJira.dat");
            }

            serializer.Serialize(recentJiraCollection);
        }
        internal static void Serialize(SettingsCollection settingsCollection)
        {
            if (serializer == null)
            {
                serializer = new ItemSerializer <SettingsCollection>("Settings.dat");
            }

            serializer.Serialize(settingsCollection);
        }
        internal static SettingsCollection DeSerialize()
        {
            if (serializer == null)
            {
                serializer = new ItemSerializer <SettingsCollection>("Settings.dat");
            }

            return(serializer.DeSerialize());
        }
        internal static List <RecentJira> DeSerialize()
        {
            if (serializer == null)
            {
                serializer = new ItemSerializer <List <RecentJira> >("RecentJira.dat");
            }

            return(serializer.DeSerialize());
        }
Example #6
0
        internal static List <RecentJira> DeSerialize()
        {
            if (serializer == null)
            {
                serializer = new ItemSerializer <List <RecentJira> >("RecentJira.dat");
            }

            return(serializer.DeSerialize().Distinct(new DuplicateRecentJiraComparer()).ToList());
        }
        internal static void Serialize(List <JiraTimer> timerCollection)
        {
            if (serializer == null)
            {
                serializer = new ItemSerializer <List <JiraTimer> >("TimerCollection.dat");
            }

            serializer.Serialize(timerCollection);
        }
        internal static List <JiraTimer> DeSerialize()
        {
            if (serializer == null)
            {
                serializer = new ItemSerializer <List <JiraTimer> >("TimerCollection.dat");
            }

            return(serializer.DeSerialize());
        }
Example #9
0
        internal static void Serialize(List <IdleTimer> idleTimeCollection)
        {
            if (serializer == null)
            {
                serializer = new ItemSerializer <List <IdleTimer> >("IdleTimerCollection.dat");
            }

            serializer.Serialize(idleTimeCollection);
        }
Example #10
0
        internal static SettingsCollection DeSerialize()
        {
            if (serializer == null)
            {
                serializer = new ItemSerializer <SettingsCollection>("Settings.dat");
            }

            var settings = serializer.DeSerialize();

            return(SetMissingDefaults(settings));
        }
        internal static SettingsCollection DeSerialize()
        {
            if (serializer == null)
            {
                serializer = new ItemSerializer <SettingsCollection>("Settings.dat");
            }

            var settings = serializer.DeSerialize();

            if (settings.InternalSettings.ValidateInstallationId())
            {
                Serialize(settings);
            }

            return(settings);
        }