コード例 #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.SessionNumber = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 2:
     this.Student1ComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 3:
     this.Student2ComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 4:
     this.IsEmpathicCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 5:
     this.IsEndingAutomaticallyCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 6:
     this.Duration = ((System.Windows.Controls.TextBox)(target));
     return;
     case 7:
     this.CountDownUserControl = ((ControlPanel.Forms.UserControls.CountDownUserControl)(target));
     return;
     case 8:
     
     #line 122 "..\..\..\..\Forms\UserControls\ControlPanelS2.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StartButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 135 "..\..\..\..\Forms\UserControls\ControlPanelS2.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.EndGameButton_OnClick);
     
     #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.SessionNumberComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 2:
     this.Student1ComboBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 60 "..\..\..\..\Forms\UserControls\ControlPanelS1.xaml"
     this.Student1ComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Student1ComboBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.ScenarioDifficulty = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 4:
     this.Student2ComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 5:
     this.ScenarioComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 6:
     this.LanguageComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 7:
     this.IsEmpathicCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 8:
     this.IsEndingAutomaticallyCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 9:
     this.Duration = ((System.Windows.Controls.TextBox)(target));
     return;
     case 10:
     this.CountDownUserControl = ((ControlPanel.Forms.UserControls.CountDownUserControl)(target));
     return;
     case 11:
     this.ButtonStart = ((System.Windows.Controls.Button)(target));
     
     #line 122 "..\..\..\..\Forms\UserControls\ControlPanelS1.xaml"
     this.ButtonStart.Click += new System.Windows.RoutedEventHandler(this.StartButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 12:
     this.ButtonStop = ((System.Windows.Controls.Button)(target));
     
     #line 135 "..\..\..\..\Forms\UserControls\ControlPanelS1.xaml"
     this.ButtonStop.Click += new System.Windows.RoutedEventHandler(this.StopButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 13:
     
     #line 136 "..\..\..\..\Forms\UserControls\ControlPanelS1.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetButton_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }