Esempio n. 1
0
 public SwDmVirtualPart(ISwDmApplication dmApp, ISwDMDocument doc, SwDmDocument owner, bool isCreated,
     Action<ISwDmDocument> createHandler, Action<ISwDmDocument> closeHandler, bool? isReadOnly) 
     : base(dmApp, doc, isCreated, createHandler, closeHandler, isReadOnly)
 {
     m_Owner = owner;
     m_Owner.Disposed += OnOwnerDisposed;
 }
Esempio n. 2
0
        public void Setup()
        {
            var dmKey = Environment.GetEnvironmentVariable("SW_DM_KEY", EnvironmentVariableTarget.Machine);

            m_App = SwDmApplicationFactory.Create(dmKey);

            m_Disposables = new List <IDisposable>();
        }
Esempio n. 3
0
 public SwDmUnknownDocument(ISwDmApplication dmApp, SwDMDocument doc, bool isCreated,
                            Action <ISwDmDocument> createHandler, Action <ISwDmDocument> closeHandler, bool?isReadOnly = null)
     : base(dmApp, doc, isCreated, createHandler, closeHandler, isReadOnly)
 {
     if (isCreated)
     {
         m_CreateHandler.Invoke((ISwDmDocument)GetSpecific());
     }
 }
Esempio n. 4
0
 internal DocumentWrapper(ISwDmApplication app, ISwDmDocument model)
 {
     m_App        = app;
     Document     = model;
     m_IsDisposed = false;
 }
Esempio n. 5
0
 public SwDmUnknownDocument3D(ISwDmApplication dmApp, SwDMDocument doc, bool isCreated, Action <ISwDmDocument> createHandler, Action <ISwDmDocument> closeHandler, bool?isReadOnly = null)
     : base(dmApp, doc, isCreated, createHandler, closeHandler, isReadOnly)
 {
 }
Esempio n. 6
0
 public SwDmAssembly(ISwDmApplication dmApp, ISwDMDocument doc, bool isCreated,
                     Action <ISwDmDocument> createHandler, Action <ISwDmDocument> closeHandler, bool?isReadOnly = null)
     : base(dmApp, doc, isCreated, createHandler, closeHandler, isReadOnly)
 {
     m_LazyConfigurations = new Lazy <SwDmAssemblyConfigurationCollection>(() => new SwDmAssemblyConfigurationCollection(this));
 }
Esempio n. 7
0
 public static bool IsVersionNewerOrEqual(this ISwDmApplication app, SwDmVersion_e version)
 => app.Version.Major >= version;
Esempio n. 8
0
 public SwDmPart(ISwDmApplication dmApp, ISwDMDocument doc, bool isCreated,
     Action<ISwDmDocument> createHandler, Action<ISwDmDocument> closeHandler, bool? isReadOnly)
     : base(dmApp, doc, isCreated, createHandler, closeHandler, isReadOnly)
 {
 }