private static void Popup_DISPATCHER()
        {
            if (null == instance)
            {
                instance = new PopupInCiteControl();

                chw               = new StandardWindow();
                chw.Title         = "Qiqqa InCite";
                chw.Content       = instance;
                chw.Closing      += chw_Closing;
                chw.Width         = 700;
                chw.Height        = 340;
                chw.Topmost       = true;
                chw.WindowStyle   = WindowStyle.ToolWindow;
                chw.ShowInTaskbar = true;
                //chw.AllowsTransparency = true;
                //chw.Background = Brushes.Transparent;
            }

            // Show the window
            chw.Show();
            Keyboard.Focus(instance.TxtSearchTerms);
            instance.TxtSearchTerms.SelectAll();

            // Attempt to get focus
            {
                IntPtr window = Interop.GetWindowHandle(chw);
                Interop.SetForegroundWindow(window);
            }
        }
        private void ButtonInCitePopup_Click(object sender, RoutedEventArgs e)
        {
            FeatureTrackingManager.Instance.UseFeature(Features.InCite_OpenPopupFromToolbar);

            if (!already_told_about_popup)
            {
                already_told_about_popup = true;
                MessageBoxes.Info("You can get to InCite Popup much faster by holding down the 'Windows key' and pressing 'Z'.\n\nYou definitely want to do this if you are in Microsoft Word and want to quickly add a citation and keep typing.");
            }

            PopupInCiteControl.Popup();
        }