Ejemplo n.º 1
0
 private void window_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.F9)
     {
         if (fullscreen)
             this.disableFullscreen();
         else
             this.enableFullscreen();
     }
     else if (e.Key == Key.F1)
     {
         var settingsWindow = new SettingsWindow(this);
         settingsWindow.Owner = this;
         settingsWindow.ShowDialog();
     }
     else if (e.Key == Key.Escape)
         this.Close();
 }
Ejemplo n.º 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.SettingWindow = ((OculusRacingCar.SettingsWindow)(target));
     
     #line 5 "..\..\SettingsWindow.xaml"
     this.SettingWindow.KeyDown += new System.Windows.Input.KeyEventHandler(this.SettingWindow_KeyDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.MainTabControl = ((System.Windows.Controls.TabControl)(target));
     return;
     case 3:
     this.GridGeneral = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.sliderNeckHeight = ((System.Windows.Controls.Slider)(target));
     
     #line 16 "..\..\SettingsWindow.xaml"
     this.sliderNeckHeight.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sliderNeckHeight_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.GridDisplay = ((System.Windows.Controls.Grid)(target));
     return;
     case 6:
     this.sliderHorizontalOffset = ((System.Windows.Controls.Slider)(target));
     
     #line 30 "..\..\SettingsWindow.xaml"
     this.sliderHorizontalOffset.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sliderHorizontalOffset_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 7:
     this.sliderVerticalOffset = ((System.Windows.Controls.Slider)(target));
     
     #line 31 "..\..\SettingsWindow.xaml"
     this.sliderVerticalOffset.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sliderVerticalOffset_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 8:
     this.sliderFOV = ((System.Windows.Controls.Slider)(target));
     
     #line 32 "..\..\SettingsWindow.xaml"
     this.sliderFOV.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sliderFOV_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 9:
     this.GridProjections = ((System.Windows.Controls.Grid)(target));
     return;
     case 10:
     this.GridProjectionsPlane = ((System.Windows.Controls.Grid)(target));
     return;
     case 11:
     this.sliderRatioProjections = ((System.Windows.Controls.Slider)(target));
     
     #line 41 "..\..\SettingsWindow.xaml"
     this.sliderRatioProjections.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sliderRatioProjections_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 12:
     this.TextRatio = ((System.Windows.Controls.TextBox)(target));
     return;
     case 13:
     this.GridProjectionsDome = ((System.Windows.Controls.Grid)(target));
     return;
     case 14:
     this.sliderHorizontalCoverage = ((System.Windows.Controls.Slider)(target));
     
     #line 51 "..\..\SettingsWindow.xaml"
     this.sliderHorizontalCoverage.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sliderHorizontalCoverage_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 15:
     this.sliderVerticalCoverage = ((System.Windows.Controls.Slider)(target));
     
     #line 52 "..\..\SettingsWindow.xaml"
     this.sliderVerticalCoverage.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sliderVerticalCoverage_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 16:
     this.sliderSlices = ((System.Windows.Controls.Slider)(target));
     
     #line 55 "..\..\SettingsWindow.xaml"
     this.sliderSlices.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sliderSlices_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 17:
     this.sliderStacks = ((System.Windows.Controls.Slider)(target));
     
     #line 56 "..\..\SettingsWindow.xaml"
     this.sliderStacks.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sliderStacks_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 18:
     this.ComboboxProjection = ((System.Windows.Controls.ComboBox)(target));
     
     #line 62 "..\..\SettingsWindow.xaml"
     this.ComboboxProjection.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboboxProjection_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 19:
     this.GridDistorsions = ((System.Windows.Controls.Grid)(target));
     return;
     case 20:
     this.sliderFactor = ((System.Windows.Controls.Slider)(target));
     
     #line 83 "..\..\SettingsWindow.xaml"
     this.sliderFactor.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sliderFactor_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 21:
     this.sliderXcenter = ((System.Windows.Controls.Slider)(target));
     
     #line 84 "..\..\SettingsWindow.xaml"
     this.sliderXcenter.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sliderXcenter_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 22:
     this.sliderYCenter = ((System.Windows.Controls.Slider)(target));
     
     #line 85 "..\..\SettingsWindow.xaml"
     this.sliderYCenter.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sliderYCenter_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 23:
     this.sliderBlue = ((System.Windows.Controls.Slider)(target));
     
     #line 89 "..\..\SettingsWindow.xaml"
     this.sliderBlue.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sliderBlue_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 24:
     this.sliderRed = ((System.Windows.Controls.Slider)(target));
     
     #line 90 "..\..\SettingsWindow.xaml"
     this.sliderRed.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sliderRed_ValueChanged);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }