Ejemplo n.º 1
0
 void AddRegApp(string RegAppName)
 {
     using (var tr = new TransactionHelper())
     {
         var rat = tr.ReadObject(acCurDb.RegAppTableId) as RegAppTable;
         rat.UpgradeOpen();
         if (!rat.Has(RegAppName))
         {
             var ratr = new RegAppTableRecord();
             ratr.Name = RegAppName;
             rat.Add(ratr);
             tr.AddNewlyCreatedDBObject(ratr, true);
         }
     }
 }