Beispiel #1
0
        public void InitializeComponent(object pExtensionHost, IComponent pComponent, componentInitializeType initType)
        {
            var snagitHost = pExtensionHost as ISnagIt;

            if (snagitHost == null)
            {
                throw new InvalidOperationException("Unable to communicate with Snagit");
            }

            shareController = new ShareController(snagitHost);
        }
Beispiel #2
0
        public void InitializeComponent(object pExtensionHost, IComponent pComponent, componentInitializeType initType)
        {
            ExceptionlessClient.Default.Register();
            ExceptionlessClient.Default.Configuration.ApiKey = "rMZZehkm8bq2HH0J9d4YV7pMYhkZPpHIfKcDsvSa";

            var snagitHost = pExtensionHost as ISnagIt;
            if (snagitHost == null)
            {
                throw new InvalidOperationException("Unable to communicate with Snagit");
            }

            snagitWindow = new Win32HWndWrapper(new IntPtr(snagitHost.TopLevelHWnd));
            shareController = new ShareController(snagitHost, Settings.Default);
            CheckForUpdates();
        }
        public void InitializeComponent(object pExtensionHost, IComponent pComponent, componentInitializeType initType)
        {
            ExceptionlessClient.Default.Register();
            ExceptionlessClient.Default.Configuration.ApiKey = "rMZZehkm8bq2HH0J9d4YV7pMYhkZPpHIfKcDsvSa";

            var snagitHost = pExtensionHost as ISnagIt;

            if (snagitHost == null)
            {
                throw new InvalidOperationException("Unable to communicate with Snagit");
            }

            snagitWindow    = new Win32HWndWrapper(new IntPtr(snagitHost.TopLevelHWnd));
            shareController = new ShareController(snagitHost, Settings.Default);
            CheckForUpdates();
        }