/// <inheritdoc /> protected override void OnSMStarted(bool wasSMAlreadyStarted) { Svc.SM.UI.ElementWdw.OnElementChanged += new ActionProxy <SMDisplayedElementChangedEventArgs>(OnElementChanged); PDFHotKeys.RegisterHotKeys(); base.OnSMStarted(wasSMAlreadyStarted); }
protected override void PluginInit() { PDFState.Instance.CaptureContext(); if (!PdfCommon.IsInitialize) { PdfCommon.Initialize(PDFLicense.LicenseKey); } Svc.SMA.UI.ElementWindow.OnElementChanged += new ActionProxy <SMDisplayedElementChangedArgs>(OnElementChanged); PDFHotKeys.RegisterHotKeys(); }