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

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

            if (filename == null)
            {
                return;
            }

            object loadedobject = PersistSettings.Load(filename);

            if (loadedobject != null)
            {
                //LiveCollection = (ObservableCollection<ISessionColumn>)loadedobject;
            }
        }
示例#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;
            }
        }