Exemplo n.º 1
0
        private bool SaveAllData()
        {
            if (app.LogToSqlite || app.LogToFile)
            {
                if (!app.LogAllEventsToBackend())
                {
                    MessageBox.Show("An error occurred when saving the current data to SQLite", "Error");
                    return(false);
                }
            }
            else
            {
                MessageBox.Show("There aren't any logging services configured. Please configure one or more logging services in Preferences.", "File System Watcher");
                return(false);
            }

            return(true);
        }