예제 #1
0
 /// <summary>
 /// This function validates if the active database is a deltaContainer
 /// </summary>
 /// <returns>True if the active db is a deltaContainer</returns>
 private bool IsActiveDbDeltaDb()
 {
     return(ActiveDatabase.IsOpen &&
            ActiveDatabase.IsCustomAttributeSet(KeeShare.AttributeFlags.IsDeltaDatabase));
 }
예제 #2
0
 /// <summary>
 /// This function validates if the plugin is allowed to handel the active database.
 /// </summary>
 /// <returns>True if a special tag was set to the database, so we could identify it as a
 /// KeeShare-database</returns>
 private bool IsPluginActive()
 {
     return(!IsActiveDbDeltaDb() &&
            ActiveDatabase.IsOpen &&
            ActiveDatabase.IsCustomAttributeSet(KeeShare.AttributeFlags.IsKeeShareEnabled));
 }