示例#1
0
 public bool CreateComosDevice(IBRServiceContracts.CCell[] specs, string user, string projectname, int idworkinglayer, string ownersystemfullname, string cdevsystemfullname)
 {
     try
     {
         m_ComosSession.SetCurrentUser(user);
         m_ComosSession.SetCurrentProjectAndWorkingOverlay(projectname, idworkinglayer);
         return(m_ComosSession.CreateDevice(ownersystemfullname, cdevsystemfullname, specs));
     }
     catch (Exception ex)
     {
         Log.WriteLog(ex.Message + ":createComosDevice", System.Diagnostics.EventLogEntryType.Warning);
         System.Diagnostics.Debug.Assert(false);
     }
     return(false);
 }