// private int attackedTimes;
 public GamePannelControl(ARPanel arPanel,TextBlock txtTotal)
 {
     this.arPanel = arPanel;
     this.txtTotal = txtTotal;
        // attackedTimes = 0;
     mosList = new List<SimpleMosquito>();
     voiceControl = true;
 }
Beispiel #2
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/ARSampleApp;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.videoRectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("videoRectangle")));
     this.viewfinderBrush = ((System.Windows.Media.VideoBrush)(this.FindName("viewfinderBrush")));
     this.videoBrushTransform = ((System.Windows.Media.CompositeTransform)(this.FindName("videoBrushTransform")));
     this.arPanel = ((SharpGIS.AR.Controls.ARPanel)(this.FindName("arPanel")));
 }
Beispiel #3
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/BThere;component/Game.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.videoRectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("videoRectangle")));
     this.viewfinderBrush = ((System.Windows.Media.VideoBrush)(this.FindName("viewfinderBrush")));
     this.videoBrushTransform = ((System.Windows.Media.CompositeTransform)(this.FindName("videoBrushTransform")));
     this.arPanel = ((SharpGIS.AR.Controls.ARPanel)(this.FindName("arPanel")));
     this.questionTXT = ((System.Windows.Controls.TextBlock)(this.FindName("questionTXT")));
     this.txtRightCount = ((System.Windows.Controls.TextBlock)(this.FindName("txtRightCount")));
     this.btnReplay = ((System.Windows.Controls.Button)(this.FindName("btnReplay")));
     this.txtResult = ((System.Windows.Controls.TextBlock)(this.FindName("txtResult")));
 }