Esempio n. 1
0
        private FileManager GetFMFromBE(BEManager be)
        {
            FileManager fm;

            if (be.GetType() == typeof(FileManager))
            {
                fm = (FileManager)be;
            }
            else
            {
                fm = myA.GetFile(be.CurrentFileId);
            }
            return(fm);
        }
Esempio n. 2
0
 public atLogic.ObjectBE GetBEFromTable(DataTable dt)
 {
     atLogic.ObjectBE oBE = (atLogic.ObjectBE)dt.ExtendedProperties["BE"];
     if (oBE == null)
     {
         if (dt.TableName == "Contact")
         {
             oBE = GetPerson();
         }
         else
         {
             BEManager mngr = MyMngrs[dt.DataSet.DataSetName];
             Type      ty   = mngr.GetType();
             System.Reflection.MethodInfo mi = ty.GetMethod("Get" + dt.TableName);
             oBE = (atLogic.ObjectBE)mi.Invoke(mngr, null);
         }
     }
     return(oBE);
 }