コード例 #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.inclinometer = ((testControl1.ToolboxControl)(target));
     return;
     case 2:
     
     #line 9 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Slider)(target)).ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.Slider_ValueChanged);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
コード例 #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 7 "..\..\MainWindow.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     this.inclinometer1 = ((testControl1.ToolboxControl)(target));
     return;
     case 3:
     this.angleTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 4:
     this.slider1 = ((System.Windows.Controls.Slider)(target));
     
     #line 10 "..\..\MainWindow.xaml"
     this.slider1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.Slider_ValueChanged);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }