public void ShowOptimizationWindow()
        {
            if (SolverList.PresetNames.Count == 0)
            {
                MessageBox.Show("No solvers found!", "FrOG Error");
                return;
            }

            var owner = Grasshopper.Instances.DocumentEditor;

            if (OptimizationWindow == null || OptimizationWindow.IsDisposed)
            {
                OptimizationWindow = new OptimizationWindow(this)
                {
                    StartPosition = FormStartPosition.Manual
                };

                GH_WindowsFormUtil.CenterFormOnWindow(OptimizationWindow, owner, true);
                owner.FormShepard.RegisterForm(OptimizationWindow);
            }
            OptimizationWindow.Show(owner);
        }
 public OptimizationComponent() : base("FrOG 0.1", "Framework for Optimization in Grasshopper", "FrOG provides an interface for the easy implementation of black-box optimization algorithms in Grasshopper.\n\nBlack-box algorithms optimize problems soley based on inputs and outputs.", "Params", "Util")
 {
     NewInstanceGuid();
     OptimizationWindow = null;
 }