public override void Exec()
        {
            try
            {
                TestWpf.MainWindow win = new TestWpf.MainWindow();
                win.ShowDialog();

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
                throw;
            }

            //ScanReports(true);
        }
        public override void Exec()
        {
            try
            {
                UIHierarchy solExplorer = this.ApplicationObject.ToolWindows.SolutionExplorer;
                UIHierarchyItem hierItem = (UIHierarchyItem)((System.Array)solExplorer.SelectedItems).GetValue(0);
                ProjectItem projItem = (ProjectItem)hierItem.Object;

                string sFileName = ((ProjectItem)hierItem.Object).Name.ToLower();

                if (this.ApplicationObject.ActiveDocument != null)
                {
                    //this.ApplicationObject.ActiveDocument;
                    //this.ApplicationObject.ActiveDocument.FullName        cesta k souboru
                    //this.ApplicationObject.ActiveDocument.Saved           false když není uložený
                }

                //ReportParametersUI.MainWindow w = new ReportParametersUI.MainWindow();

                //MessageBox.Show("instance hotova");

                //w.ShowDialog();

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

            try
            {
                TestWpf.MainWindow win = new TestWpf.MainWindow();
                win.ShowDialog();

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
                throw;
            }
        }