Example #1
0
        void SaveConfig()
        {
            string filename = Utils.GetFile();

            if (filename.Length < 1)
            {
                return;
            }
            PersistSettings.Save(LiveCollection, filename);
        }
Example #2
0
        void LoadPersistedConfig()
        {
            string filename = Utils.GetFile();

            if (filename == null)
            {
                return;
            }

            object loadedobject = PersistSettings.Load(filename);

            if (loadedobject != null)
            {
                //LiveCollection = (ObservableCollection<ISessionColumn>)loadedobject;
            }
        }
Example #3
0
        void LoadPersistedConfig()
        {
            if (String.IsNullOrEmpty(PersistFilename))
            {
                PersistFilename = Utils.GetFile();
            }
            if (PersistFilename == null)
            {
                return;
            }

            object loadedobject = PersistSettings.Load(PersistFilename);

            if (loadedobject != null)
            {
                LiveCollection = (ObservableCollection <ISessionColumn>)loadedobject;
            }
        }