Exemple #1
0
        /****************************************************************/

        #region Control Channel

        public static void O2Db(ControlChannel obj, EFData.ControlChannel dbObj)
        {
            dbObj.Name       = obj.Name;
            dbObj.HaveDimmer = obj.HaveDimmer;
            dbObj.ChannelNo  = obj.ChannelNo;
            dbObj.PointType  = (EFData.PointTypeEnum)obj.PointType;
            dbObj.HaveDimmer = obj.HaveDimmer;
            dbObj.Multilink  = obj.Multilink;
            dbObj.DotNetType = obj.DotNetType;
            dbObj.Profile    = obj.Profile;
        }
Exemple #2
0
 public static void Db2O(EFData.ControlChannel dbObj, out ControlChannel obj)
 {
     obj            = (ControlChannel)Activator.CreateInstance(Type.GetType(dbObj.DotNetType));
     obj.Id         = dbObj.Id;
     obj.HaveDimmer = (bool)dbObj.HaveDimmer;
     obj.ChannelNo  = dbObj.ChannelNo;
     obj.PointType  = (LS_Library.PointTypeEnum)dbObj.PointType;
     obj.HaveDimmer = (bool)dbObj.HaveDimmer;
     obj.Multilink  = (bool)dbObj.Multilink;
     obj.DotNetType = dbObj.DotNetType;
     obj.Profile    = dbObj.Profile;
 }