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; }
public void Setup() { var dmKey = Environment.GetEnvironmentVariable("SW_DM_KEY", EnvironmentVariableTarget.Machine); m_App = SwDmApplicationFactory.Create(dmKey); m_Disposables = new List <IDisposable>(); }
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()); } }
internal DocumentWrapper(ISwDmApplication app, ISwDmDocument model) { m_App = app; Document = model; m_IsDisposed = false; }
public SwDmUnknownDocument3D(ISwDmApplication dmApp, SwDMDocument doc, bool isCreated, Action <ISwDmDocument> createHandler, Action <ISwDmDocument> closeHandler, bool?isReadOnly = null) : base(dmApp, doc, isCreated, createHandler, closeHandler, isReadOnly) { }
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)); }
public static bool IsVersionNewerOrEqual(this ISwDmApplication app, SwDmVersion_e version) => app.Version.Major >= version;
public SwDmPart(ISwDmApplication dmApp, ISwDMDocument doc, bool isCreated, Action<ISwDmDocument> createHandler, Action<ISwDmDocument> closeHandler, bool? isReadOnly) : base(dmApp, doc, isCreated, createHandler, closeHandler, isReadOnly) { }