public static void AddNewTable(KOTableFile table)
 {
     lock (TableLock)
     {
         if (Tables.ContainsKey(table.FileInformation.FullName))
         {
             throw new Exception("The specified table is already open.");
         }
         Tables[table.FullName] = table;
     }
 }
 public static void RemoveTableByFullName(string tableName)
 {
     lock (TableLock)
     {
         KOTableFile tbl = GetTableByFullName(tableName);
         if (tbl != null)
         {
             Tables.Remove(tbl.FullName);
         }
         else
         {
             throw new Exception("The table with given name does not exist.");
         }
     }
 }