/// <summary> /// Initializes this instance. /// </summary> public void init() { this.smiWrapper = new SMIRedMWrapper(); this.smiWrapper.initialize(); this.smiWrapper.register(this); this.IsTracking = false; this.IsConnected = false; this.lastTime = 0; Document activeDocument = Document.ActiveDocument; if (activeDocument != null) { this.screenHeight = activeDocument.PresentationSize.Height; this.screenWidth = activeDocument.PresentationSize.Width; } }
/// <summary> /// Initializes this instance. /// </summary> public void init() { this.smiWrapper = new SMIRedMWrapper(); this.smiWrapper.initialize(); this.smiWrapper.register(this); this.IsTracking = false; this.IsConnected = false; this.lastTime = 0; Document activeDocument = Document.ActiveDocument; if (activeDocument != null) { this.screenHeight = activeDocument.PresentationSize.Height; this.screenWidth = activeDocument.PresentationSize.Width; } }