public override Grasshopper.GUI.Canvas.GH_ObjectResponse RespondToMouseDoubleClick(Grasshopper.GUI.Canvas.GH_Canvas sender, Grasshopper.GUI.GH_CanvasMouseEvent e) { MyComponent.DesignView.InitialDesign = new DesignVM(MyComponent.DesignLines, MyComponent.DesignCurves, MyComponent.DesignMeshes, MyComponent.DesignBreps, false, true, MyComponent.Score, MyComponent.Design); Window w = new StormCloudWindow(MyComponent.DesignView, MyComponent); w.Show(); return(base.RespondToMouseDoubleClick(sender, e)); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.SCWindow = ((StormCloud.StormCloudWindow)(target)); return; case 2: this.CurrentModel = ((HelixToolkit.Wpf.HelixViewport3D)(target)); return; case 3: this.autoGenerateCheck = ((System.Windows.Controls.CheckBox)(target)); return; case 4: this.autogenSlider = ((System.Windows.Controls.Slider)(target)); return; case 5: this.Pop = ((System.Windows.Controls.Slider)(target)); return; case 6: this.Mut = ((System.Windows.Controls.Slider)(target)); return; case 7: this.myScroll = ((System.Windows.Controls.ScrollViewer)(target)); return; case 8: this.DesignGrid = ((System.Windows.Controls.Grid)(target)); return; case 9: #line 105 "..\..\StormCloudWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_Generate); #line default #line hidden return; case 10: #line 110 "..\..\StormCloudWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_Build); #line default #line hidden #line 110 "..\..\StormCloudWindow.xaml" ((System.Windows.Controls.Button)(target)).MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Button_MouseRightButtonDown_Build); #line default #line hidden return; } this._contentLoaded = true; }