Exemple #1
0
 /// <summary>
 /// Clears the memory cache and deletes the cache file.
 /// </summary>
 public void ClearCache()
 {
     lock (this) {
         _dirty = false;
         _x     = null;
         _table = null;
         AFile.Delete(_cacheFile);
     }
 }
Exemple #2
0
 /// <summary>
 /// Deletes the settings file of the toolbar, if exists. It resets toolbar settings.
 /// The toolbar should not be open when calling this function.
 /// </summary>
 /// <param name="toolbarName">Toolbar name.</param>
 /// <exception cref="Exception">Exceptions of <see cref="AFile.Delete(string, bool)"/>.</exception>
 public static void DeleteSettings(string toolbarName)
 {
     AFile.Delete(GetSettingsFilePath(toolbarName));
 }