Beispiel #1
0
        /// <summary>
        /// /Load a saved observable collection in iirioc format
        /// </summary>
        /// <param name="filepath">The filepath to load</param>
        /// <returns>True if open succeeded, false if it failed</returns>
        private bool OpenFile(string filepath)
        {
            ObservableCollection ob = SaveLoadLocalObservableCollection.LoadFromBasicFile(filepath);

            if (ob == null)
            {
                return(false);
            }
            else
            {
                ObsCollection = ob;

                return(true);
            }
        }
Beispiel #2
0
 /// <summary>
 /// Save the observable collection to the specified file
 /// </summary>
 /// <param name="filename">The filename to save it to</param>
 /// <returns>True if save succeeded, false if it failed</returns>
 private bool SaveFile(string filename)
 {
     return(SaveLoadLocalObservableCollection.SaveToBasicFile(filename, ObsCollection));
 }