543 lines
21 KiB
C#
543 lines
21 KiB
C#
#pragma checksum "..\..\..\windows\games.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "7793F573B28281C5A2307877B2BADA74AE09488DCFB80DE3C8871FE65E41B6BD"
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// Этот код создан программой.
|
|
// Исполняемая версия:4.0.30319.42000
|
|
//
|
|
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
|
// повторной генерации кода.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
using System;
|
|
using System.Diagnostics;
|
|
using System.Windows;
|
|
using System.Windows.Automation;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Controls.Primitives;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Ink;
|
|
using System.Windows.Input;
|
|
using System.Windows.Markup;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Animation;
|
|
using System.Windows.Media.Effects;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Media.Media3D;
|
|
using System.Windows.Media.TextFormatting;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
using System.Windows.Shell;
|
|
|
|
|
|
namespace Raton.Windows {
|
|
|
|
|
|
/// <summary>
|
|
/// Games
|
|
/// </summary>
|
|
public partial class Games : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
|
|
|
|
|
#line 141 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Button BtnSnake;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 147 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Button BtnPaint;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 153 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Button BtnMine;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 159 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Button BtnFlappy;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 176 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Grid PanelSnake;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 187 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.TextBlock SnakeScoreTxt;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 191 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.TextBlock SnakeStatusTxt;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 199 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Canvas SnakeCanvas;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 202 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Grid PanelPaint;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 228 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Slider BrushSlider;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 235 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Button BtnEraser;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 239 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Border ColorPreview;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 246 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Canvas PaintCanvas;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 249 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Grid PanelMine;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 260 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.TextBlock MineCountTxt;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 265 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.TextBlock MineTimerTxt;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 269 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.TextBlock MineStatusTxt;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 279 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Border MineOverlay;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 283 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.TextBlock MineOverlayIcon;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 284 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.TextBlock MineOverlayTxt;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 288 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Primitives.UniformGrid MineGridCtrl;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 292 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Grid PanelFlappy;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 303 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.TextBlock FlappyScoreTxt;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 307 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.TextBlock FlappyBestTxt;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 311 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.TextBlock FlappyStatusTxt;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 319 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.Canvas FlappyCanvas;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
|
|
#line 326 "..\..\..\windows\games.xaml"
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
internal System.Windows.Controls.TextBlock StatusBarLeft;
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
private bool _contentLoaded;
|
|
|
|
/// <summary>
|
|
/// InitializeComponent
|
|
/// </summary>
|
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
|
public void InitializeComponent() {
|
|
if (_contentLoaded) {
|
|
return;
|
|
}
|
|
_contentLoaded = true;
|
|
System.Uri resourceLocater = new System.Uri("/Raton;component/windows/games.xaml", System.UriKind.Relative);
|
|
|
|
#line 1 "..\..\..\windows\games.xaml"
|
|
System.Windows.Application.LoadComponent(this, resourceLocater);
|
|
|
|
#line default
|
|
#line hidden
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
|
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
|
switch (connectionId)
|
|
{
|
|
case 1:
|
|
this.BtnSnake = ((System.Windows.Controls.Button)(target));
|
|
|
|
#line 141 "..\..\..\windows\games.xaml"
|
|
this.BtnSnake.Click += new System.Windows.RoutedEventHandler(this.Nav_Snake);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 2:
|
|
this.BtnPaint = ((System.Windows.Controls.Button)(target));
|
|
|
|
#line 147 "..\..\..\windows\games.xaml"
|
|
this.BtnPaint.Click += new System.Windows.RoutedEventHandler(this.Nav_Paint);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 3:
|
|
this.BtnMine = ((System.Windows.Controls.Button)(target));
|
|
|
|
#line 153 "..\..\..\windows\games.xaml"
|
|
this.BtnMine.Click += new System.Windows.RoutedEventHandler(this.Nav_Minesweeper);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 4:
|
|
this.BtnFlappy = ((System.Windows.Controls.Button)(target));
|
|
|
|
#line 159 "..\..\..\windows\games.xaml"
|
|
this.BtnFlappy.Click += new System.Windows.RoutedEventHandler(this.Nav_Flappy);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 5:
|
|
this.PanelSnake = ((System.Windows.Controls.Grid)(target));
|
|
return;
|
|
case 6:
|
|
this.SnakeScoreTxt = ((System.Windows.Controls.TextBlock)(target));
|
|
return;
|
|
case 7:
|
|
this.SnakeStatusTxt = ((System.Windows.Controls.TextBlock)(target));
|
|
return;
|
|
case 8:
|
|
|
|
#line 193 "..\..\..\windows\games.xaml"
|
|
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SnakeRestart);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 9:
|
|
this.SnakeCanvas = ((System.Windows.Controls.Canvas)(target));
|
|
|
|
#line 199 "..\..\..\windows\games.xaml"
|
|
this.SnakeCanvas.KeyDown += new System.Windows.Input.KeyEventHandler(this.SnakeCanvas_KeyDown);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 10:
|
|
this.PanelPaint = ((System.Windows.Controls.Grid)(target));
|
|
return;
|
|
case 11:
|
|
|
|
#line 210 "..\..\..\windows\games.xaml"
|
|
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PaintColor_Click);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 12:
|
|
|
|
#line 211 "..\..\..\windows\games.xaml"
|
|
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PaintColor_Click);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 13:
|
|
|
|
#line 213 "..\..\..\windows\games.xaml"
|
|
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PaintColor_Click);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 14:
|
|
|
|
#line 215 "..\..\..\windows\games.xaml"
|
|
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PaintColor_Click);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 15:
|
|
|
|
#line 217 "..\..\..\windows\games.xaml"
|
|
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PaintColor_Click);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 16:
|
|
|
|
#line 219 "..\..\..\windows\games.xaml"
|
|
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PaintColor_Click);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 17:
|
|
|
|
#line 221 "..\..\..\windows\games.xaml"
|
|
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PaintColor_Click);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 18:
|
|
|
|
#line 223 "..\..\..\windows\games.xaml"
|
|
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PaintColor_Click);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 19:
|
|
this.BrushSlider = ((System.Windows.Controls.Slider)(target));
|
|
|
|
#line 228 "..\..\..\windows\games.xaml"
|
|
this.BrushSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.BrushSlider_Changed);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 20:
|
|
this.BtnEraser = ((System.Windows.Controls.Button)(target));
|
|
|
|
#line 235 "..\..\..\windows\games.xaml"
|
|
this.BtnEraser.Click += new System.Windows.RoutedEventHandler(this.PaintEraser_Click);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 21:
|
|
|
|
#line 237 "..\..\..\windows\games.xaml"
|
|
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PaintClear_Click);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 22:
|
|
this.ColorPreview = ((System.Windows.Controls.Border)(target));
|
|
return;
|
|
case 23:
|
|
this.PaintCanvas = ((System.Windows.Controls.Canvas)(target));
|
|
|
|
#line 245 "..\..\..\windows\games.xaml"
|
|
this.PaintCanvas.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.PaintCanvas_MouseDown);
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 245 "..\..\..\windows\games.xaml"
|
|
this.PaintCanvas.MouseMove += new System.Windows.Input.MouseEventHandler(this.PaintCanvas_MouseMove);
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 245 "..\..\..\windows\games.xaml"
|
|
this.PaintCanvas.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.PaintCanvas_MouseUp);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 24:
|
|
this.PanelMine = ((System.Windows.Controls.Grid)(target));
|
|
return;
|
|
case 25:
|
|
this.MineCountTxt = ((System.Windows.Controls.TextBlock)(target));
|
|
return;
|
|
case 26:
|
|
this.MineTimerTxt = ((System.Windows.Controls.TextBlock)(target));
|
|
return;
|
|
case 27:
|
|
this.MineStatusTxt = ((System.Windows.Controls.TextBlock)(target));
|
|
return;
|
|
case 28:
|
|
|
|
#line 272 "..\..\..\windows\games.xaml"
|
|
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.MineRestart);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 29:
|
|
this.MineOverlay = ((System.Windows.Controls.Border)(target));
|
|
return;
|
|
case 30:
|
|
this.MineOverlayIcon = ((System.Windows.Controls.TextBlock)(target));
|
|
return;
|
|
case 31:
|
|
this.MineOverlayTxt = ((System.Windows.Controls.TextBlock)(target));
|
|
return;
|
|
case 32:
|
|
this.MineGridCtrl = ((System.Windows.Controls.Primitives.UniformGrid)(target));
|
|
return;
|
|
case 33:
|
|
this.PanelFlappy = ((System.Windows.Controls.Grid)(target));
|
|
return;
|
|
case 34:
|
|
this.FlappyScoreTxt = ((System.Windows.Controls.TextBlock)(target));
|
|
return;
|
|
case 35:
|
|
this.FlappyBestTxt = ((System.Windows.Controls.TextBlock)(target));
|
|
return;
|
|
case 36:
|
|
this.FlappyStatusTxt = ((System.Windows.Controls.TextBlock)(target));
|
|
return;
|
|
case 37:
|
|
|
|
#line 313 "..\..\..\windows\games.xaml"
|
|
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.FlappyRestart);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 38:
|
|
this.FlappyCanvas = ((System.Windows.Controls.Canvas)(target));
|
|
|
|
#line 319 "..\..\..\windows\games.xaml"
|
|
this.FlappyCanvas.KeyDown += new System.Windows.Input.KeyEventHandler(this.FlappyCanvas_KeyDown);
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 319 "..\..\..\windows\games.xaml"
|
|
this.FlappyCanvas.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.FlappyCanvas_MouseDown);
|
|
|
|
#line default
|
|
#line hidden
|
|
return;
|
|
case 39:
|
|
this.StatusBarLeft = ((System.Windows.Controls.TextBlock)(target));
|
|
return;
|
|
}
|
|
this._contentLoaded = true;
|
|
}
|
|
}
|
|
}
|
|
|