public void Execute(Solution solution) { using (var form = new FinderDefinitionForm(solution as _Solution)) { form.ShowDialog(); } }
static void Main() { var dte = CreateDTEInstance(); dte.Solution.Open(@"C:\Users\AHowu\source\repos\Sage300CMvcApplication1\Sage300CMvcApplication1\Sage300CMvcApplication1.sln"); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var form = new FinderDefinitionForm(dte.Solution as _Solution); Application.Run(form); }