public static void ShowForm(AddInContext context)
        {
            //clear the cache
            context.reloadRepository();
            //start
            var exporterForm     = new ExporterForm(context.CctsRepository, context.SelectedPackage);
            var mainWindowHandle = context.GetmainWindowHandle();

            if (mainWindowHandle != IntPtr.Zero)
            {
                WindowInteropHelper wih = new WindowInteropHelper(exporterForm);
                wih.Owner = context.GetmainWindowHandle();
            }
            exporterForm.Show();
        }
Exemple #2
0
        public static void ShowForm(AddInContext context)
        {
            //clear the cache
            context.reloadRepository();
            //start
            var exporterForm = new ExportXSDSchemaForm(context.CctsRepository, context.SelectedPackage, context.settings);
            var mainWindow   = context.GetMainEAWindow();

            if (mainWindow != null)
            {
                exporterForm.ShowDialog(mainWindow);
            }
            else
            {
                exporterForm.ShowDialog();
            }
        }