Esempio n. 1
0
        /// <summary>
        /// Implements <see cref="IFileOperations{AppMessage}.Save(List{ApMessage}, string)" />
        /// </summary>
        public void Save(List <AppMessage> messages, string path = null)
        {
            try
            {
                FullySaved = true;
                string messageString = ConvertToData(messages);

                AllIO.BackupChanges(messageString, FileTypes.MESSAGE);
            }
            catch (Exception)
            {
                FullySaved = false;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Implements <see cref="IFileOperations{SavedEvent}.Save(List{SavedEvent}, string)" />
        /// </summary>
        public void Save(List <SavedEvent> events, string path = null)
        {
            try
            {
                FullySaved = true;
                string eventString = ConvertToData(events);

                AllIO.BackupChanges(eventString, FileTypes.EVENT);
            }
            catch (Exception)
            {
                FullySaved = false;
            }
        }