public BattleFieldCell(BattleField owner, int x, int y) { _owner = owner; this.X = x; this.Y = y; _control = new UserControl() { HorizontalAlignment = HorizontalAlignment.Stretch, VerticalAlignment = VerticalAlignment.Stretch, Background = owner.Colors[0], BorderThickness = new Thickness(1.0), BorderBrush = Brushes.Transparent }; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 7 "..\..\..\GameWindow.xaml" ((SBattle.GameWindow)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown); #line default #line hidden return; case 2: this.enemyField = ((SBattle.UI.BattleField)(target)); return; case 3: this.myField = ((SBattle.UI.BattleField)(target)); return; case 4: this.tt = ((System.Windows.Controls.Button)(target)); #line 30 "..\..\..\GameWindow.xaml" this.tt.Click += new System.Windows.RoutedEventHandler(this.Button_Click_1); #line default #line hidden return; case 5: this.chat = ((SBattle.UI.ChatFrame)(target)); return; } this._contentLoaded = true; }