Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\ViewPortControlDemoWindow.xaml"
                ((CSharpWPFCharts.ViewPortControlDemoWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.pointerPB = ((System.Windows.Controls.RadioButton)(target));

            #line 15 "..\..\ViewPortControlDemoWindow.xaml"
                this.pointerPB.Checked += new System.Windows.RoutedEventHandler(this.pointerPB_Checked);

            #line default
            #line hidden
                return;

            case 3:
                this.zoomInPB = ((System.Windows.Controls.RadioButton)(target));

            #line 21 "..\..\ViewPortControlDemoWindow.xaml"
                this.zoomInPB.Checked += new System.Windows.RoutedEventHandler(this.zoomInPB_Checked);

            #line default
            #line hidden
                return;

            case 4:
                this.zoomOutPB = ((System.Windows.Controls.RadioButton)(target));

            #line 27 "..\..\ViewPortControlDemoWindow.xaml"
                this.zoomOutPB.Checked += new System.Windows.RoutedEventHandler(this.zoomOutPB_Checked);

            #line default
            #line hidden
                return;

            case 5:
                this.savePB = ((System.Windows.Controls.Button)(target));

            #line 33 "..\..\ViewPortControlDemoWindow.xaml"
                this.savePB.Click += new System.Windows.RoutedEventHandler(this.savePB_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.WPFChartViewer1 = ((ChartDirector.WPFChartViewer)(target));

            #line 41 "..\..\ViewPortControlDemoWindow.xaml"
                this.WPFChartViewer1.MouseMovePlotArea += new System.Windows.Input.MouseEventHandler(this.WPFChartViewer1_MouseMovePlotArea);

            #line default
            #line hidden

            #line 41 "..\..\ViewPortControlDemoWindow.xaml"
                this.WPFChartViewer1.ViewPortChanged += new ChartDirector.WPFViewPortEventHandler(this.WPFChartViewer1_ViewPortChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.ViewPortControl1 = ((ChartDirector.WPFViewPortControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\MainWindow.xaml"
                ((ChartDirectorSampleCode.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 9 "..\..\MainWindow.xaml"
                ((ChartDirectorSampleCode.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.pointerPB = ((System.Windows.Controls.RadioButton)(target));

            #line 14 "..\..\MainWindow.xaml"
                this.pointerPB.Checked += new System.Windows.RoutedEventHandler(this.pointerPB_Checked);

            #line default
            #line hidden
                return;

            case 3:
                this.zoomInPB = ((System.Windows.Controls.RadioButton)(target));

            #line 20 "..\..\MainWindow.xaml"
                this.zoomInPB.Checked += new System.Windows.RoutedEventHandler(this.zoomInPB_Checked);

            #line default
            #line hidden
                return;

            case 4:
                this.zoomOutPB = ((System.Windows.Controls.RadioButton)(target));

            #line 26 "..\..\MainWindow.xaml"
                this.zoomOutPB.Checked += new System.Windows.RoutedEventHandler(this.zoomOutPB_Checked);

            #line default
            #line hidden
                return;

            case 5:
                this.savePB = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.savePB.Click += new System.Windows.RoutedEventHandler(this.savePB_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.WPFChartViewer1 = ((ChartDirector.WPFChartViewer)(target));
                return;

            case 7:
                this.viewPortControl1 = ((ChartDirector.WPFViewPortControl)(target));
                return;
            }
            this._contentLoaded = true;
        }