예제 #1
0
 public override void Load()
 {
     AddToPage(this);
     base.Load();
     Ellipse _Ellipse = new Ellipse { Fill = new SolidColorBrush(Colors.Blue), Height = 5, Width = 5 };
     Add(_Ellipse);
     _Ellipse.Center();
 }
예제 #2
0
 public override void Load()
 {
     Ellipse _Ellipse = new Ellipse() { Width = 30, Height = 30, Fill = new SolidColorBrush(Colors.Black) };
     _w = _Ellipse.Width;
     _h = _Ellipse.Height;
     Add(_Ellipse);
     _Gun = new Gun { _Player = this };
     Add(_Gun);
     _Gun.Load();
     _Ellipse.Center();
     base.Load();
 }
예제 #3
0
            public override void Load()
            {
                AddToPage(this);
                base.Load();

                Ellipse _Ellipse2 = new Ellipse { Width = 50, Height = 50, Fill = new SolidColorBrush(Colors.White) };
                _Page._map.Children.Add(_Ellipse2);
                _Ellipse2.Center(_x, _y);
                _Ellipse = new Ellipse { Width = 5, Height = 5, Fill = new SolidColorBrush(Colors.Yellow) };
                _Ellipse.Center();
                Add(_Ellipse);
                _Ellipse.Center();
            }