removeSurface(string name) { try { using (Transaction tr = BaseObjs.startTransactionDb()) { try { TinSurface surface = getTinSurface(name); if (surface != null) { surface.UpgradeOpen(); surface.Erase(); } } catch (System.Exception ex) { BaseObjs.writeDebug(string.Format("{0} Surf.cs: line: 168", ex.Message)); } tr.Commit(); } } catch (System.Exception ex) { BaseObjs.writeDebug(string.Format("{0} Surf.cs: line: 174", ex.Message)); } }