protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.TheBestPlane); ////////////////////////МЕНЮ\\\\\\\\\\\\\\\\\\\\\\ drawerLayout = FindViewById <DrawerLayout>(Resource.Id.drawer_layout); var toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id._app_bar); SetSupportActionBar(toolbar); SupportActionBar.SetTitle(Resource.String.app_name); SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetDisplayShowHomeEnabled(true); var navigationView = FindViewById <NavigationView>(Resource.Id.nav_view); navigationView.NavigationItemSelected += NavigationView_NavigationItemSelected; var drawerToogle = new ActionBarDrawerToggle(this, drawerLayout, toolbar, Resource.String.open_drawer, Resource.String.close_drawer); drawerLayout.AddDrawerListener(drawerToogle); drawerToogle.SyncState(); ////////////////////////МЕНЮ\\\\\\\\\\\\\\\\\\\\\\ Context context = Application.Context; var id = "ca-app-pub-8211072909515345~1945501010"; Android.Gms.Ads.MobileAds.Initialize(context, id); var adView = FindViewById <AdView>(Resource.Id.adViewTheBestPlane); var adRequest = new AdRequest.Builder().Build(); adView.LoadAd(adRequest); //var requestbuilder = new AdRequest.Builder().AddTestDevice("D0BE22F1A4BE27C7470F95A699568FE2"); //adView.LoadAd(requestbuilder.Build()); _TheBestSpinnerNation = FindViewById <Spinner>(Resource.Id.TheBestSpinnerNation); _TheBestSpinnerRank = FindViewById <Spinner>(Resource.Id.TheBestSpinnerRank); _TheBestSpinnerTask = FindViewById <Spinner>(Resource.Id.TheBestSpinnerTask); _TheBestListView = FindViewById <ListView>(Resource.Id.TheBestlistView); //Привязка спиннеров к шарп коду theBestNations = NationCollection.GetNation(); TheBestAdapterNation = new NationAdapter(this, theBestNations); _TheBestSpinnerNation.Adapter = TheBestAdapterNation; _TheBestSpinnerNation.SetSelection(0); //Автовыбор selectedNation = 100; theBestRanks = RankCollection.GetRank(); TheBestAdapterRank = new RankAdapter(this, theBestRanks); _TheBestSpinnerRank.Adapter = TheBestAdapterRank; _TheBestSpinnerRank.SetSelection(6); //Автовыбор selectedRank = 6; //Автовыбор theBestTask = TaskCollection.GetTask(); TheBestAdapterTask = new TaskAdapter(this, theBestTask); _TheBestSpinnerTask.Adapter = TheBestAdapterTask; _TheBestSpinnerTask.SetSelection(0); //Автовыбор SelectedTask = 0; //Автовыбор _TheBestSpinnerNation.ItemSelected += _TheBestSpinnerNation_ItemSelected; _TheBestSpinnerRank.ItemSelected += _TheBestSpinnerRank_ItemSelected; _TheBestSpinnerTask.ItemSelected += _TheBestSpinnerTask_ItemSelected; }
////////////////////////МЕНЮ\\\\\\\\\\\\\\\\\\\\\\ protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.InfoShip); context = Application.Context; ////////////////////////МЕНЮ\\\\\\\\\\\\\\\\\\\\\\ drawerLayout = FindViewById <DrawerLayout>(Resource.Id.drawer_layout); var toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id._app_bar); SetSupportActionBar(toolbar); SupportActionBar.SetTitle(Resource.String.app_name); SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetDisplayShowHomeEnabled(true); var navigationView = FindViewById <NavigationView>(Resource.Id.nav_view); navigationView.NavigationItemSelected += NavigationView_NavigationItemSelected; var drawerToogle = new ActionBarDrawerToggle(this, drawerLayout, toolbar, Resource.String.open_drawer, Resource.String.close_drawer); drawerLayout.AddDrawerListener(drawerToogle); drawerToogle.SyncState(); ////////////////////////МЕНЮ\\\\\\\\\\\\\\\\\\\\\\ var id = "ca-app-pub-8211072909515345~1945501010"; Android.Gms.Ads.MobileAds.Initialize(context, id); var adView = FindViewById <AdView>(Resource.Id.adViewInfoShip); var adRequest = new AdRequest.Builder().Build(); adView.LoadAd(adRequest); //var requestbuilder = new AdRequest.Builder().AddTestDevice("D0BE22F1A4BE27C7470F95A699568FE2"); //adView.LoadAd(requestbuilder.Build()); //шрифт var font = Typeface.CreateFromAsset(Assets, "dinfont.ttf"); _InfoSpinnerNation = FindViewById <Spinner>(Resource.Id.InfoSpinnerNationS); _InfoSpinnerRank = FindViewById <Spinner>(Resource.Id.InfoSpinnerRankS); _InfoSpinnerShip = FindViewById <Spinner>(Resource.Id.InfoSpinnerShip); _InfoListView = FindViewById <ListView>(Resource.Id.listViewS); _InfoSpinnerPotentialEnemyShip = FindViewById <Spinner>(Resource.Id.InfoSpinnerPotentialEnemyShip); //Привязка спиннеров к шарп коду #region Привязка TextView к коду _InfoImage = FindViewById <ImageView>(Resource.Id.InfoImageS); _InfoFlag = FindViewById <ImageView>(Resource.Id.InfoFlagS); _InfoHandingRocket = FindViewById <ImageView>(Resource.Id.InfoShipHandingRocket); _InfoHandlingDepthCharge = FindViewById <ImageView>(Resource.Id.InfoShipHandingDepthCharge); _InfoHandlingTorpedo = FindViewById <ImageView>(Resource.Id.InfoShipHandingTorpedo); _InfoHandingMine = FindViewById <ImageView>(Resource.Id.InfoShipHandingMine); _InfoMCShellAP = FindViewById <ImageView>(Resource.Id.InfoShipMCShellAP); _InfoMCShellAPHE = FindViewById <ImageView>(Resource.Id.InfoShipMCShellAPHE); _InfoMCShellAPCR = FindViewById <ImageView>(Resource.Id.InfoShipMCShellAPCR); _InfoMCShellHE = FindViewById <ImageView>(Resource.Id.InfoShipMCShellHE); _InfoMCShellHEVT = FindViewById <ImageView>(Resource.Id.InfoShipMCShellHEVT); _InfoMCShellHEDF = FindViewById <ImageView>(Resource.Id.InfoShipMCShellHEDF); _InfoMCShellFOG = FindViewById <ImageView>(Resource.Id.InfoShipMCShellFOG); _InfoMCShellShrapnel = FindViewById <ImageView>(Resource.Id.InfoShipMCShellShrapnel); _InfoAUShellShrapnel = FindViewById <ImageView>(Resource.Id.InfoShipAUShellShrapnel); _InfoAUShellAP = FindViewById <ImageView>(Resource.Id.InfoShipAUShellAP); _InfoAUShellAPHE = FindViewById <ImageView>(Resource.Id.InfoShipAUShellAPHE); _InfoAUShellAPCR = FindViewById <ImageView>(Resource.Id.InfoShipAUShellAPCR); _InfoAUShellHE = FindViewById <ImageView>(Resource.Id.InfoShipAUShellHE); _InfoAUShellHEVT = FindViewById <ImageView>(Resource.Id.InfoShipAUShellHEVT); _InfoAUShellHEDF = FindViewById <ImageView>(Resource.Id.InfoShipAUShellHEDF); _InfoAUShellFOG = FindViewById <ImageView>(Resource.Id.InfoShipAUShellFOG); _InfoAAAShellAP = FindViewById <ImageView>(Resource.Id.InfoShipAAAShellAP); _InfoAAAShellAPHE = FindViewById <ImageView>(Resource.Id.InfoShipAAAShellAPHE); _InfoAAAShellAPCR = FindViewById <ImageView>(Resource.Id.InfoShipAAAShellAPCR); _InfoAAAShellHE = FindViewById <ImageView>(Resource.Id.InfoShipAAAShellHE); _InfoAAAShellHEVT = FindViewById <ImageView>(Resource.Id.InfoShipAAAShellHEVT); _InfoAAAShellHEDF = FindViewById <ImageView>(Resource.Id.InfoShipAAAShellHEDF); _InfoAAAShellFOG = FindViewById <ImageView>(Resource.Id.InfoShipAAAShellFOG); _InfoShipLabelTextFirstLaunch = FindViewById <TextView>(Resource.Id.InfoShipLabelTextShipLaunched); _InfoShipLabelTextPatchAdded = FindViewById <TextView>(Resource.Id.InfoShipLabelTextPatchAdded); _InfoShipLabelTextType = FindViewById <TextView>(Resource.Id.InfoShipLabelTextType); _InfoShipLabelTextCharacter = FindViewById <TextView>(Resource.Id.InfoShipLabelTextCharacter); _InfoShipLabelTextBR = FindViewById <TextView>(Resource.Id.InfoShipLabelTextBR); _InfoShipTextFirstLaunch = FindViewById <TextView>(Resource.Id.InfoShipTextShipLaunched); _InfoShipTextPatchAdded = FindViewById <TextView>(Resource.Id.InfoShipTextPatchAdded); _InfoShipTextType = FindViewById <TextView>(Resource.Id.InfoShipTextType); _InfoShipTextCharacter = FindViewById <TextView>(Resource.Id.InfoShipTextCharacter); _InfoShipTextBR = FindViewById <TextView>(Resource.Id.InfoShipTextBR); _InfoShipTextMainCaliberName = FindViewById <TextView>(Resource.Id.InfoShipTextMainCaliber); _InfoShipTextMainCaliberReload = FindViewById <TextView>(Resource.Id.InfoShipTextMainCaliberReload); _InfoShipTextMainCaliberTNT = FindViewById <TextView>(Resource.Id.InfoShipTextMainCaliberTNT); _InfoShipTextAuxiliaryCaliberName = FindViewById <TextView>(Resource.Id.InfoShipTextAuxiliaryCaliber); _InfoShipTextAuxiliaryCaliberReload = FindViewById <TextView>(Resource.Id.InfoShipTextAuxiliaryCaliberReload); _InfoShipTextAAACaliberName = FindViewById <TextView>(Resource.Id.InfoShipTextAAACaliber); _InfoShipTextAAACaliberReload = FindViewById <TextView>(Resource.Id.InfoShipTextAAACaliberReload); _InfoShipTextTorpedoName = FindViewById <TextView>(Resource.Id.InfoShipTextTorpedo); _InfoShipTextTorpedoItem = FindViewById <TextView>(Resource.Id.InfoShipTextTorpedoItem); _InfoShipTextTorpedoMaxSpeed = FindViewById <TextView>(Resource.Id.InfoShipTextTorpedoMaxSpeed); _InfoShipTextTorpedoTNT = FindViewById <TextView>(Resource.Id.InfoShipTextTorpedoTNT); _InfoShipTextMaxSpeed = FindViewById <TextView>(Resource.Id.InfoShipTextMaxSpeed); _InfoShipTextReverseSpeed = FindViewById <TextView>(Resource.Id.InfoShipTextReverseSpeed); _InfoShipTextAcceleration = FindViewById <TextView>(Resource.Id.InfoShipTextAcceleration); _InfoShipTextBrakingTime = FindViewById <TextView>(Resource.Id.InfoShipTextBrakingTime); _InfoShipTextTurn360 = FindViewById <TextView>(Resource.Id.InfoShipTextTurn360); _InfoShipTextDisplacement = FindViewById <TextView>(Resource.Id.InfoShipTextDisplacement); _InfoShipTextCrewCount = FindViewById <TextView>(Resource.Id.InfoShipTextCrewCount); _InfoShipLabelTextMainCaliberReload = FindViewById <TextView>(Resource.Id.InfoShipLabelMainCaliberReload); _InfoShipLabelTextMainCaliberTNT = FindViewById <TextView>(Resource.Id.InfoShipLabelMainCaliberTNT); _InfoShipLabelTextAuxiliaryCaliberReload = FindViewById <TextView>(Resource.Id.InfoShipLabelAuxiliaryCaliberReload); _InfoShipLabelTextAAACaliberReload = FindViewById <TextView>(Resource.Id.InfoShipLabelAAACaliberReload); _InfoShipLabelTextTorpedoItem = FindViewById <TextView>(Resource.Id.InfoShipLabelTorpedoItem); _InfoShipLabelTextTorpedoMaxSpeed = FindViewById <TextView>(Resource.Id.InfoShipLabelTorpedoMaxSpeed); _InfoShipLabelTextTorpedoTNT = FindViewById <TextView>(Resource.Id.InfoShipLabelTorpedoTNT); _InfoShipLabelTextMaxSpeed = FindViewById <TextView>(Resource.Id.InfoShipLabelMaxSpeed); _InfoShipLabelTextReverseSpeed = FindViewById <TextView>(Resource.Id.InfoShipLabelReverseSpeed); _InfoShipLabelTextAcceleration = FindViewById <TextView>(Resource.Id.InfoShipLabelAcceleration); _InfoShipLabelTextBrakingTime = FindViewById <TextView>(Resource.Id.InfoShipLabelBrakingTime); _InfoShipLabelTextTurn360 = FindViewById <TextView>(Resource.Id.InfoShipLabelTurn360); _InfoShipLabelTextDisplacement = FindViewById <TextView>(Resource.Id.InfoShipLabelDisplacement); _InfoShipLabelTextCrewCount = FindViewById <TextView>(Resource.Id.InfoShipLabelCrewCount); _InfoShipLabelTextMCShellType = FindViewById <TextView>(Resource.Id.InfoShipLabelMCShellType); _InfoShipLabelTextAUShellType = FindViewById <TextView>(Resource.Id.InfoShipLabelAUShellType); _InfoShipLabelTextAAAShellType = FindViewById <TextView>(Resource.Id.InfoShipLabelAAAShellType); _InfoShipLabelTextAdditional = FindViewById <TextView>(Resource.Id.InfoShipLabelAdditionalWeapon); #endregion #region Изменение шрифта и цвета _InfoShipLabelTextMainCaliberReload.Typeface = font; _InfoShipLabelTextMainCaliberTNT.Typeface = font; _InfoShipLabelTextAuxiliaryCaliberReload.Typeface = font; _InfoShipLabelTextAAACaliberReload.Typeface = font; _InfoShipLabelTextTorpedoItem.Typeface = font; _InfoShipLabelTextTorpedoMaxSpeed.Typeface = font; _InfoShipLabelTextTorpedoTNT.Typeface = font; _InfoShipLabelTextMaxSpeed.Typeface = font; _InfoShipLabelTextReverseSpeed.Typeface = font; _InfoShipLabelTextAcceleration.Typeface = font; _InfoShipLabelTextBrakingTime.Typeface = font; _InfoShipLabelTextTurn360.Typeface = font; _InfoShipLabelTextDisplacement.Typeface = font; _InfoShipLabelTextCrewCount.Typeface = font; _InfoShipLabelTextFirstLaunch.Typeface = font; _InfoShipLabelTextPatchAdded.Typeface = font; _InfoShipLabelTextType.Typeface = font; _InfoShipLabelTextCharacter.Typeface = font; _InfoShipLabelTextBR.Typeface = font; _InfoShipLabelTextMCShellType.Typeface = font; _InfoShipLabelTextAUShellType.Typeface = font; _InfoShipLabelTextAAAShellType.Typeface = font; _InfoShipLabelTextAdditional.Typeface = font; _InfoShipLabelTextMainCaliberReload.SetTextColor(Color.Black); _InfoShipLabelTextMainCaliberTNT.SetTextColor(Color.Black); _InfoShipLabelTextAuxiliaryCaliberReload.SetTextColor(Color.Black); _InfoShipLabelTextAAACaliberReload.SetTextColor(Color.Black); _InfoShipLabelTextTorpedoItem.SetTextColor(Color.Black); _InfoShipLabelTextTorpedoMaxSpeed.SetTextColor(Color.Black); _InfoShipLabelTextTorpedoTNT.SetTextColor(Color.Black); _InfoShipLabelTextMaxSpeed.SetTextColor(Color.Black); _InfoShipLabelTextReverseSpeed.SetTextColor(Color.Black); _InfoShipLabelTextAcceleration.SetTextColor(Color.Black); _InfoShipLabelTextBrakingTime.SetTextColor(Color.Black); _InfoShipLabelTextTurn360.SetTextColor(Color.Black); _InfoShipLabelTextDisplacement.SetTextColor(Color.Black); _InfoShipLabelTextCrewCount.SetTextColor(Color.Black); _InfoShipTextMainCaliberName.SetTextColor(Color.Black); _InfoShipTextMainCaliberReload.SetTextColor(Color.Black); _InfoShipTextMainCaliberTNT.SetTextColor(Color.Black); _InfoShipTextAuxiliaryCaliberName.SetTextColor(Color.Black); _InfoShipTextAuxiliaryCaliberReload.SetTextColor(Color.Black); _InfoShipTextAAACaliberName.SetTextColor(Color.Black); _InfoShipTextAAACaliberReload.SetTextColor(Color.Black); _InfoShipTextTorpedoName.SetTextColor(Color.Black); _InfoShipTextTorpedoItem.SetTextColor(Color.Black); _InfoShipTextTorpedoMaxSpeed.SetTextColor(Color.Black); _InfoShipTextTorpedoTNT.SetTextColor(Color.Black); _InfoShipTextMaxSpeed.SetTextColor(Color.Black); _InfoShipTextReverseSpeed.SetTextColor(Color.Black); _InfoShipTextAcceleration.SetTextColor(Color.Black); _InfoShipTextBrakingTime.SetTextColor(Color.Black); _InfoShipTextTurn360.SetTextColor(Color.Black); _InfoShipTextDisplacement.SetTextColor(Color.Black); _InfoShipTextCrewCount.SetTextColor(Color.Black); _InfoShipLabelTextFirstLaunch.SetTextColor(Color.Black); _InfoShipLabelTextPatchAdded.SetTextColor(Color.Black); _InfoShipLabelTextType.SetTextColor(Color.Black); _InfoShipLabelTextCharacter.SetTextColor(Color.Black); _InfoShipLabelTextBR.SetTextColor(Color.Black); _InfoShipTextFirstLaunch.SetTextColor(Color.Black); _InfoShipTextPatchAdded.SetTextColor(Color.Black); _InfoShipTextType.SetTextColor(Color.Black); _InfoShipTextCharacter.SetTextColor(Color.Black); _InfoShipTextBR.SetTextColor(Color.Black); #endregion nations = NationCollection.GetNation(); AdapterNation = new NationAdapter(this, nations); _InfoSpinnerNation.Adapter = AdapterNation; _InfoSpinnerNation.SetSelection(1); //Автовыбор selectedNation = 1; //Автовыбор ranks = RankCollection.GetRank(); AdapterRank = new RankAdapter(this, ranks); _InfoSpinnerRank.Adapter = AdapterRank; _InfoSpinnerRank.SetSelection(4); //Автовыбор selectedRank = 4; //Автовыбор potentialTask = ShipTaskCollection.GetTask(); PotentialAdapterTaskShip = new TaskAdapter(this, potentialTask); _InfoSpinnerPotentialEnemyShip.Adapter = PotentialAdapterTaskShip; _InfoSpinnerPotentialEnemyShip.SetSelection(0); //Автовыбор SelectedPotentialTaskShip = 0; //Автовыбор _InfoSpinnerShip.SetSelection(1); //Объявление коллекции наций, рангов и адаптеров _InfoSpinnerNation.ItemSelected += _InfoSpinnerNation_ItemSelected; _InfoSpinnerRank.ItemSelected += _InfoSpinnerRank_ItemSelected; _InfoSpinnerShip.ItemSelected += _InfoSpinnerShip_ItemSelected; _InfoSpinnerPotentialEnemyShip.ItemSelected += _InfoSpinnerPotentialEnemyShip_ItemSelected; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.InfoPlane); context = Application.Context; ////////////////////////МЕНЮ\\\\\\\\\\\\\\\\\\\\\\ drawerLayout = FindViewById <DrawerLayout>(Resource.Id.drawer_layout); var toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id._app_bar); SetSupportActionBar(toolbar); SupportActionBar.SetTitle(Resource.String.app_name); SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetDisplayShowHomeEnabled(true); var navigationView = FindViewById <NavigationView>(Resource.Id.nav_view); navigationView.NavigationItemSelected += NavigationView_NavigationItemSelected; var drawerToogle = new ActionBarDrawerToggle(this, drawerLayout, toolbar, Resource.String.open_drawer, Resource.String.close_drawer); drawerLayout.AddDrawerListener(drawerToogle); drawerToogle.SyncState(); ////////////////////////МЕНЮ\\\\\\\\\\\\\\\\\\\\\\ var id = "ca-app-pub-8211072909515345~1945501010"; Android.Gms.Ads.MobileAds.Initialize(context, id); var adView = FindViewById <AdView>(Resource.Id.adViewInfoPlane); var adRequest = new AdRequest.Builder().Build(); adView.LoadAd(adRequest); //var requestbuilder = new AdRequest.Builder().AddTestDevice("D0BE22F1A4BE27C7470F95A699568FE2"); //adView.LoadAd(requestbuilder.Build()); //шрифт var font = Typeface.CreateFromAsset(Assets, "dinfont.ttf"); _InfoSpinnerNation = FindViewById <Spinner>(Resource.Id.InfoSpinnerNation); _InfoSpinnerPlane = FindViewById <Spinner>(Resource.Id.InfoSpinnerPlane); _InfoSpinnerRank = FindViewById <Spinner>(Resource.Id.InfoSpinnerRank); _InfoListView = FindViewById <ListView>(Resource.Id.listView); _InfoSpinnerPotentialEnemyPlane = FindViewById <Spinner>(Resource.Id.InfoSpinnerPotentialEnemyPlane); //Привязка спиннеров к шарп коду #region Привязка TextView к коду _InfoImage = FindViewById <ImageView>(Resource.Id.InfoImage); _InfoFlag = FindViewById <ImageView>(Resource.Id.InfoCompareFlag); _InfoHandlingRocket = FindViewById <ImageView>(Resource.Id.InfoHandlingRocket); _InfoHandlingCannon = FindViewById <ImageView>(Resource.Id.InfoHandlingCannon); _InfoHandlingBomb = FindViewById <ImageView>(Resource.Id.InfoHandlingBomb); _InfoHandlingTorpedo = FindViewById <ImageView>(Resource.Id.InfoHandlingTorpedo); _InfoHandlingAirToAir = FindViewById <ImageView>(Resource.Id.InfoHandlingAirToAir); _InfoHandlingAirToGround = FindViewById <ImageView>(Resource.Id.InfoHandlingAirToGround); _InfoPlaneTextFirstFlyYear = FindViewById <TextView>(Resource.Id.InfoPlaneTextFirstFlyYear); _InfoPlaneTextPatchAdded = FindViewById <TextView>(Resource.Id.InfoPlaneTextPatchAdded); _InfoPlaneTextBombLoad = FindViewById <TextView>(Resource.Id.InfoPlaneTextBombLoad); _InfoPlaneTextBR = FindViewById <TextView>(Resource.Id.InfoPlaneTextBR); _InfoPlaneTextType = FindViewById <TextView>(Resource.Id.InfoPlaneTextType); _InfoPlaneTextMaxSpeedAt0 = FindViewById <TextView>(Resource.Id.InfoPlaneTextMaxSpeedAt0); _InfoPlaneTextMaxSpeedAt5000 = FindViewById <TextView>(Resource.Id.InfoPlaneTextMaxSpeedAt5000); _InfoPlaneTextTurnAt0 = FindViewById <TextView>(Resource.Id.InfoPlaneTextTurnAt0); _InfoPlaneTextClimb = FindViewById <TextView>(Resource.Id.InfoPlaneTextClimb); _InfoPlaneTextEnginePower = FindViewById <TextView>(Resource.Id.InfoPlaneTextEnginePower); _InfoPlaneTextWeight = FindViewById <TextView>(Resource.Id.InfoPlaneTextWeight); _InfoPlaneTextThrustToWeightRatio = FindViewById <TextView>(Resource.Id.InfoPlaneTextThrustToWeightRatio); _InfoPlaneTextWeaponVolleyPerSecond = FindViewById <TextView>(Resource.Id.InfoPlaneTextWeaponVolleyPerSecond); _InfoPlaneTextWeaponAndTurrels = FindViewById <TextView>(Resource.Id.InfoPlaneTextWeaponAndTurrels); _InfoPlaneTextPlaneCharacter = FindViewById <TextView>(Resource.Id.InfoPlaneTextPlaneCharacter); _InfoPlaneTextFlutter = FindViewById <TextView>(Resource.Id.InfoPlaneTextFlutter); _InfoPlaneLabelTextHandingWeapon = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextHandingWeapon); _InfoPlaneLabelTextFirstFlyYear = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextFirstFlyYear); _InfoPlaneLabelTextPatchAdded = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextPlanePatchAdded); _InfoPlaneLabelTextBombLoad = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextBombLoad); _InfoPlaneLabelTextBR = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextBR); _InfoPlaneLabelTextType = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextType); _InfoPlaneLabelTextMaxSpeedAt0 = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextMaxSpeedAt0); _InfoPlaneLabelTextMaxSpeedAt5000 = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextMaxSpeedAt5000); _InfoPlaneLabelTextTurnAt0 = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextTurnAt0); _InfoPlaneLabelTextClimb = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextClimb); _InfoPlaneLabelTextEnginePower = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextEnginePower); _InfoPlaneLabelTextWeight = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextWeight); _InfoPlaneLabelTextThrustToWeightRatio = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextThrustToWeightRatio); _InfoPlaneLabelTextWeaponVolleyPerSecond = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextWeaponVolleyPerSecond); _InfoPlaneLabelTextPlaneCharacter = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextPlaneCharacter); _InfoPlaneLabelTextFlutter = FindViewById <TextView>(Resource.Id.InfoPlaneLabelTextFlutter); #endregion #region Изменения шрифта _InfoPlaneLabelTextPatchAdded.Typeface = font; _InfoPlaneLabelTextFirstFlyYear.Typeface = font; _InfoPlaneLabelTextBombLoad.Typeface = font; _InfoPlaneLabelTextHandingWeapon.Typeface = font; _InfoPlaneLabelTextBR.Typeface = font; _InfoPlaneLabelTextType.Typeface = font; _InfoPlaneLabelTextMaxSpeedAt0.Typeface = font; _InfoPlaneLabelTextMaxSpeedAt5000.Typeface = font; _InfoPlaneLabelTextTurnAt0.Typeface = font; _InfoPlaneLabelTextClimb.Typeface = font; _InfoPlaneLabelTextEnginePower.Typeface = font; _InfoPlaneLabelTextWeight.Typeface = font; _InfoPlaneLabelTextThrustToWeightRatio.Typeface = font; _InfoPlaneLabelTextWeaponVolleyPerSecond.Typeface = font; _InfoPlaneLabelTextPlaneCharacter.Typeface = font; _InfoPlaneTextWeaponAndTurrels.Typeface = font; _InfoPlaneLabelTextFlutter.Typeface = font; #endregion #region Изменения цвета текста всех TextView _InfoPlaneTextPatchAdded.SetTextColor(Color.Black); _InfoPlaneTextFirstFlyYear.SetTextColor(Color.Black); _InfoPlaneTextBombLoad.SetTextColor(Color.Black); _InfoPlaneTextBR.SetTextColor(Color.Black); _InfoPlaneTextType.SetTextColor(Color.Black); _InfoPlaneTextMaxSpeedAt0.SetTextColor(Color.Black); _InfoPlaneTextMaxSpeedAt5000.SetTextColor(Color.Black); _InfoPlaneTextTurnAt0.SetTextColor(Color.Black); _InfoPlaneTextClimb.SetTextColor(Color.Black); _InfoPlaneTextEnginePower.SetTextColor(Color.Black); _InfoPlaneTextWeight.SetTextColor(Color.Black); _InfoPlaneTextThrustToWeightRatio.SetTextColor(Color.Black); _InfoPlaneTextWeaponVolleyPerSecond.SetTextColor(Color.Black); _InfoPlaneTextFlutter.SetTextColor(Color.Black); _InfoPlaneTextWeaponAndTurrels.SetTextColor(Color.Black); _InfoPlaneTextPlaneCharacter.SetTextColor(Color.Black); _InfoPlaneLabelTextPatchAdded.SetTextColor(Color.Black); _InfoPlaneLabelTextFirstFlyYear.SetTextColor(Color.Black); _InfoPlaneLabelTextBombLoad.SetTextColor(Color.Black); _InfoPlaneLabelTextHandingWeapon.SetTextColor(Color.Black); _InfoPlaneLabelTextBR.SetTextColor(Color.Black); _InfoPlaneLabelTextType.SetTextColor(Color.Black); _InfoPlaneLabelTextMaxSpeedAt0.SetTextColor(Color.Black); _InfoPlaneLabelTextMaxSpeedAt5000.SetTextColor(Color.Black); _InfoPlaneLabelTextTurnAt0.SetTextColor(Color.Black); _InfoPlaneLabelTextClimb.SetTextColor(Color.Black); _InfoPlaneLabelTextEnginePower.SetTextColor(Color.Black); _InfoPlaneLabelTextWeight.SetTextColor(Color.Black); _InfoPlaneLabelTextThrustToWeightRatio.SetTextColor(Color.Black); _InfoPlaneLabelTextWeaponVolleyPerSecond.SetTextColor(Color.Black); _InfoPlaneLabelTextPlaneCharacter.SetTextColor(Color.Black); _InfoPlaneLabelTextFlutter.SetTextColor(Color.Black); #endregion nations = NationCollection.GetNation(); AdapterNation = new NationAdapter(this, nations); _InfoSpinnerNation.Adapter = AdapterNation; _InfoSpinnerNation.SetSelection(1); //Автовыбор selectedNation = 1; //Автовыбор ranks = RankCollection.GetRank(); AdapterRank = new RankAdapter(this, ranks); _InfoSpinnerRank.Adapter = AdapterRank; _InfoSpinnerRank.SetSelection(6); //Автовыбор selectedRank = 6; //Автовыбор potentialTaskPlane = TaskCollection.GetTask(); PotentialAdapterTaskPlane = new TaskAdapter(this, potentialTaskPlane); _InfoSpinnerPotentialEnemyPlane.Adapter = PotentialAdapterTaskPlane; _InfoSpinnerPotentialEnemyPlane.SetSelection(0); //Автовыбор SelectedPotentialTaskPlane = 0; //Автовыбор _InfoSpinnerPlane.SetSelection(7); //Объявление коллекции наций, рангов и адаптеров _InfoSpinnerNation.ItemSelected += _InfoSpinnerNation_ItemSelected; _InfoSpinnerRank.ItemSelected += _InfoSpinnerRank_ItemSelected; _InfoSpinnerPlane.ItemSelected += _InfoSpinnerPlane_ItemSelected; _InfoSpinnerPotentialEnemyPlane.ItemSelected += _InfoSpinnerPotentialEnemyPlane_ItemSelected; //События спиннеров }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.InfoTank); context = Application.Context; ////////////////////////МЕНЮ\\\\\\\\\\\\\\\\\\\\\\ drawerLayout = FindViewById <DrawerLayout>(Resource.Id.drawer_layout); var toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id._app_bar); SetSupportActionBar(toolbar); SupportActionBar.SetTitle(Resource.String.app_name); SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetDisplayShowHomeEnabled(true); var navigationView = FindViewById <NavigationView>(Resource.Id.nav_view); navigationView.NavigationItemSelected += NavigationView_NavigationItemSelected; var drawerToogle = new ActionBarDrawerToggle(this, drawerLayout, toolbar, Resource.String.open_drawer, Resource.String.close_drawer); drawerLayout.AddDrawerListener(drawerToogle); drawerToogle.SyncState(); ////////////////////////МЕНЮ\\\\\\\\\\\\\\\\\\\\\\ var id = "ca-app-pub-8211072909515345~1945501010"; Android.Gms.Ads.MobileAds.Initialize(context, id); var adView = FindViewById <AdView>(Resource.Id.adViewInfoTankkk); var adRequest = new AdRequest.Builder().Build(); adView.LoadAd(adRequest); //var requestbuilder = new AdRequest.Builder().AddTestDevice("D0BE22F1A4BE27C7470F95A699568FE2"); //adView.LoadAd(requestbuilder.Build()); //шрифт var font = Typeface.CreateFromAsset(Assets, "dinfont.ttf"); _InfoSpinnerNation = FindViewById <Spinner>(Resource.Id.InfoSpinnerNationT); _InfoSpinnerRank = FindViewById <Spinner>(Resource.Id.InfoSpinnerRankT); _InfoSpinnerTank = FindViewById <Spinner>(Resource.Id.InfoSpinnerTank); _InfoListView = FindViewById <ListView>(Resource.Id.listViewT); _InfoSpinnerPotentialEnemyTank = FindViewById <Spinner>(Resource.Id.InfoSpinnerPotentialEnemyTank); //Привязка спиннеров к шарп коду #region Привязка TextView к коду _InfoImage = FindViewById <ImageView>(Resource.Id.InfoImageT); _InfoFlag = FindViewById <ImageView>(Resource.Id.InfoFlagT); _ShellAP = FindViewById <ImageView>(Resource.Id.InfoShellAP); _ShellAPHE = FindViewById <ImageView>(Resource.Id.InfoShellAPHE); _ShellHE = FindViewById <ImageView>(Resource.Id.InfoShellHE); _ShellAPCR = FindViewById <ImageView>(Resource.Id.InfoShellAPCR); _ShellAPDS = FindViewById <ImageView>(Resource.Id.InfoShellAPDS); _ShellAPFSDS = FindViewById <ImageView>(Resource.Id.InfoShellAPFSDS); _ShellHEAT = FindViewById <ImageView>(Resource.Id.InfoShellHEAT); _ShellHEATFS = FindViewById <ImageView>(Resource.Id.InfoShellHEATFS); _ShellShrapnel = FindViewById <ImageView>(Resource.Id.InfoShellShrapnel); _ShellHESH = FindViewById <ImageView>(Resource.Id.InfoShellHESH); _ShellATGM = FindViewById <ImageView>(Resource.Id.InfoShellATGM); _ShellSSM = FindViewById <ImageView>(Resource.Id.InfoShellSSM); _ShellHEATGRENADE = FindViewById <ImageView>(Resource.Id.InfoShellHEATGRENADE); _ShellHEGRENADE = FindViewById <ImageView>(Resource.Id.InfoShellHEGRENADE); _ShellHEVT = FindViewById <ImageView>(Resource.Id.InfoShellHEVT); _ShellSAM = FindViewById <ImageView>(Resource.Id.InfoShellSAM); _InfoTankTextBR = FindViewById <TextView>(Resource.Id.InfoTankTextBR); _InfoTankTextType = FindViewById <TextView>(Resource.Id.InfoTankTextType); _InfoTankTextCharacter = FindViewById <TextView>(Resource.Id.InfoTankTextPlaneCharacter); _InfoTankTextFirstRideYear = FindViewById <TextView>(Resource.Id.InfoTankTextFirstRideYear); _InfoTankTextPatchAdded = FindViewById <TextView>(Resource.Id.InfoTankTextPatchAdded); _InfoTankTextMaxSpeedAtRoad = FindViewById <TextView>(Resource.Id.InfoTankTextMaxSpeedAtRoad); _InfoTankTextMaxSpeedAtTerrain = FindViewById <TextView>(Resource.Id.InfoTankTextMaxSpeedAtTerrain); _InfoTankTextMaxReverseSpeed = FindViewById <TextView>(Resource.Id.InfoTankTextMaxReverseSpeed); _InfoTankTextAccelerationTo100 = FindViewById <TextView>(Resource.Id.InfoTankTextAccelerationTo100); _InfoTankTextTurnTurretTime = FindViewById <TextView>(Resource.Id.InfoTankTextTurnTurretTime); _InfoTankTextTurnHullTime = FindViewById <TextView>(Resource.Id.InfoTankTextTurnHullTime); _InfoTankTextEnginePower = FindViewById <TextView>(Resource.Id.InfoTankTextEnginePower); _InfoTankTextWeight = FindViewById <TextView>(Resource.Id.InfoTankTextWeight); _InfoTankTextPowerToWeightRatio = FindViewById <TextView>(Resource.Id.InfoTankTextPowerToWeightRatio); _InfoTankTextCannonName = FindViewById <TextView>(Resource.Id.InfoTankTextCannonName); _InfoTankTextPenetration = FindViewById <TextView>(Resource.Id.InfoTankTextPenetration); _InfoTankTextShellSpeed = FindViewById <TextView>(Resource.Id.InfoTankTextShellSpeed); _InfoTankTextReloadTime = FindViewById <TextView>(Resource.Id.InfoTankTextReloadTime); _InfoTankTextUpAimAngle = FindViewById <TextView>(Resource.Id.InfoTankTextUpAimAngle); _InfoTankTextDownAimAngle = FindViewById <TextView>(Resource.Id.InfoTankTextDownAimAngle); _InfoTankTextStabilizer = FindViewById <TextView>(Resource.Id.InfoTankTextStabilizer); _InfoTankTextAAMachineGunExist = FindViewById <TextView>(Resource.Id.InfoTankTextAAMachineGunExist); _InfoTankTextReducedArmorFrontTurret = FindViewById <TextView>(Resource.Id.InfoTankTextReducedArmorFrontTurret); _InfoTankTextReducedArmorTopSheet = FindViewById <TextView>(Resource.Id.InfoTankTextReducedArmorTopSheet); _InfoTankTextReducedArmorBottomSheet = FindViewById <TextView>(Resource.Id.InfoTankTextReducedBottomTopSheet); _InfoTankLabelTextBR = FindViewById <TextView>(Resource.Id.InfoTankLabelTextBR); _InfoTankLabelTextType = FindViewById <TextView>(Resource.Id.InfoTankLabelTextType); _InfoTankLabelTextCharacter = FindViewById <TextView>(Resource.Id.InfoTankLabelTextPlaneCharacter); _InfoTankLabelTextFirstRideYear = FindViewById <TextView>(Resource.Id.InfoTankLabelTextFirstRideYear); _InfoTankLabelTextPatchAdded = FindViewById <TextView>(Resource.Id.InfoTankLabelTextTankPatchAdded); _InfoTankLabelTextMaxSpeedAtRoad = FindViewById <TextView>(Resource.Id.InfoTankLabelTextMaxSpeedAtRoad); _InfoTankLabelTextMaxSpeedAtTerrain = FindViewById <TextView>(Resource.Id.InfoTankLabelTextMaxSpeedAtTerrain); _InfoTankLabelTextMaxReverseSpeed = FindViewById <TextView>(Resource.Id.InfoTankLabelTextMaxReverseSpeed); _InfoTankLabelTextAccelerationTo100 = FindViewById <TextView>(Resource.Id.InfoTankLabelTextAccelerationTo100); _InfoTankLabelTextTurnTurretTime = FindViewById <TextView>(Resource.Id.InfoTankLabelTextTurnTurretTime); _InfoTankLabelTextTurnHullTime = FindViewById <TextView>(Resource.Id.InfoTankLabelTextTurnHullTime); _InfoTankLabelTextEnginePower = FindViewById <TextView>(Resource.Id.InfoTankLabelTextEnginePower); _InfoTankLabelTextWeight = FindViewById <TextView>(Resource.Id.InfoTankLabelTextWeight); _InfoTankLabelTextPowerToWeightRatio = FindViewById <TextView>(Resource.Id.InfoTankLabelTextPowerToWeightRatio); _InfoTankLabelTextPenetration = FindViewById <TextView>(Resource.Id.InfoTankLabelTextPenetration); _InfoTankLabelTextShellSpeed = FindViewById <TextView>(Resource.Id.InfoTankLabelTextShellSpeed); _InfoTankLabelTextReloadTime = FindViewById <TextView>(Resource.Id.InfoTankLabelTextReloadTime); _InfoTankLabelTextUpAimAngle = FindViewById <TextView>(Resource.Id.InfoTankLabelTextUpAimAngle); _InfoTankLabelTextDownAimAngle = FindViewById <TextView>(Resource.Id.InfoTankLabelTextDownAimAngle); _InfoTankLabelTextStabilizer = FindViewById <TextView>(Resource.Id.InfoTankLabelTextStabilizer); _InfoTankLabelTextAAMachineGunExist = FindViewById <TextView>(Resource.Id.InfoTankLabelTextAAMachineGunExist); _InfoTankLabelTextReducedArmorFrontTurret = FindViewById <TextView>(Resource.Id.InfoTankLabelTextReducedArmorFrontTurret); _InfoTankLabelTextReducedArmorTopSheet = FindViewById <TextView>(Resource.Id.InfoTankLabelTextReducedArmorTopSheet); _InfoTankLabelTextReducedArmorBottomSheet = FindViewById <TextView>(Resource.Id.InfoTankLabelTextReducedArmorBottomSheet); _InfoTankShellType = FindViewById <TextView>(Resource.Id.InfoTankShellType); #endregion #region Изменения шрифта _InfoTankLabelTextBR.Typeface = font; _InfoTankLabelTextType.Typeface = font; _InfoTankLabelTextCharacter.Typeface = font; _InfoTankLabelTextFirstRideYear.Typeface = font; _InfoTankLabelTextPatchAdded.Typeface = font; _InfoTankLabelTextMaxSpeedAtRoad.Typeface = font; _InfoTankLabelTextMaxSpeedAtTerrain.Typeface = font; _InfoTankLabelTextMaxReverseSpeed.Typeface = font; _InfoTankLabelTextAccelerationTo100.Typeface = font; _InfoTankLabelTextTurnTurretTime.Typeface = font; _InfoTankLabelTextTurnHullTime.Typeface = font; _InfoTankLabelTextEnginePower.Typeface = font; _InfoTankLabelTextWeight.Typeface = font; _InfoTankLabelTextPowerToWeightRatio.Typeface = font; _InfoTankLabelTextPenetration.Typeface = font; _InfoTankLabelTextShellSpeed.Typeface = font; _InfoTankLabelTextReloadTime.Typeface = font; _InfoTankLabelTextUpAimAngle.Typeface = font; _InfoTankLabelTextDownAimAngle.Typeface = font; _InfoTankLabelTextStabilizer.Typeface = font; _InfoTankLabelTextAAMachineGunExist.Typeface = font; _InfoTankLabelTextReducedArmorFrontTurret.Typeface = font; _InfoTankLabelTextReducedArmorTopSheet.Typeface = font; _InfoTankLabelTextReducedArmorBottomSheet.Typeface = font; _InfoTankShellType.Typeface = font; #endregion #region Изменения цвета текста всех TextView _InfoTankLabelTextBR.SetTextColor(Color.Black); _InfoTankLabelTextType.SetTextColor(Color.Black); _InfoTankLabelTextCharacter.SetTextColor(Color.Black); _InfoTankLabelTextFirstRideYear.SetTextColor(Color.Black); _InfoTankLabelTextPatchAdded.SetTextColor(Color.Black); _InfoTankLabelTextMaxSpeedAtRoad.SetTextColor(Color.Black); _InfoTankLabelTextMaxSpeedAtTerrain.SetTextColor(Color.Black); _InfoTankLabelTextMaxReverseSpeed.SetTextColor(Color.Black); _InfoTankLabelTextAccelerationTo100.SetTextColor(Color.Black); _InfoTankLabelTextTurnTurretTime.SetTextColor(Color.Black); _InfoTankLabelTextTurnHullTime.SetTextColor(Color.Black); _InfoTankLabelTextEnginePower.SetTextColor(Color.Black); _InfoTankLabelTextWeight.SetTextColor(Color.Black); _InfoTankLabelTextPowerToWeightRatio.SetTextColor(Color.Black); _InfoTankLabelTextPenetration.SetTextColor(Color.Black); _InfoTankLabelTextShellSpeed.SetTextColor(Color.Black); _InfoTankLabelTextReloadTime.SetTextColor(Color.Black); _InfoTankLabelTextUpAimAngle.SetTextColor(Color.Black); _InfoTankLabelTextDownAimAngle.SetTextColor(Color.Black); _InfoTankLabelTextStabilizer.SetTextColor(Color.Black); _InfoTankLabelTextAAMachineGunExist.SetTextColor(Color.Black); _InfoTankLabelTextReducedArmorFrontTurret.SetTextColor(Color.Black); _InfoTankLabelTextReducedArmorTopSheet.SetTextColor(Color.Black); _InfoTankLabelTextReducedArmorBottomSheet.SetTextColor(Color.Black); _InfoTankTextBR.SetTextColor(Color.Black); _InfoTankTextType.SetTextColor(Color.Black); _InfoTankTextCharacter.SetTextColor(Color.Black); _InfoTankTextFirstRideYear.SetTextColor(Color.Black); _InfoTankTextPatchAdded.SetTextColor(Color.Black); _InfoTankTextMaxSpeedAtRoad.SetTextColor(Color.Black); _InfoTankTextMaxSpeedAtTerrain.SetTextColor(Color.Black); _InfoTankTextMaxReverseSpeed.SetTextColor(Color.Black); _InfoTankTextAccelerationTo100.SetTextColor(Color.Black); _InfoTankTextTurnTurretTime.SetTextColor(Color.Black); _InfoTankTextTurnHullTime.SetTextColor(Color.Black); _InfoTankTextEnginePower.SetTextColor(Color.Black); _InfoTankTextWeight.SetTextColor(Color.Black); _InfoTankTextPowerToWeightRatio.SetTextColor(Color.Black); _InfoTankTextCannonName.SetTextColor(Color.Black); _InfoTankTextPenetration.SetTextColor(Color.Black); _InfoTankTextShellSpeed.SetTextColor(Color.Black); _InfoTankTextReloadTime.SetTextColor(Color.Black); _InfoTankTextUpAimAngle.SetTextColor(Color.Black); _InfoTankTextDownAimAngle.SetTextColor(Color.Black); _InfoTankTextStabilizer.SetTextColor(Color.Black); _InfoTankTextAAMachineGunExist.SetTextColor(Color.Black); _InfoTankTextReducedArmorFrontTurret.SetTextColor(Color.Black); _InfoTankTextReducedArmorTopSheet.SetTextColor(Color.Black); _InfoTankTextReducedArmorBottomSheet.SetTextColor(Color.Black); _InfoTankShellType.SetTextColor(Color.Black); #endregion nations = NationCollection.GetNation(); AdapterNation = new NationAdapter(this, nations); _InfoSpinnerNation.Adapter = AdapterNation; _InfoSpinnerNation.SetSelection(5); //Автовыбор selectedNation = 5; //Автовыбор ranks = RankCollection.GetRank(); AdapterRank = new RankAdapter(this, ranks); _InfoSpinnerRank.Adapter = AdapterRank; _InfoSpinnerRank.SetSelection(7); //Автовыбор selectedRank = 7; //Автовыбор potentialTask = TankTaskCollection.GetTankTask(); PotentialAdapterTask = new TaskAdapter(this, potentialTask); _InfoSpinnerPotentialEnemyTank.Adapter = PotentialAdapterTask; _InfoSpinnerPotentialEnemyTank.SetSelection(0); //Автовыбор SelectedPotentialTask = 0; //Автовыбор _InfoSpinnerTank.SetSelection(1); //Объявление коллекции наций, рангов и адаптеров _InfoSpinnerNation.ItemSelected += _InfoSpinnerNation_ItemSelected; _InfoSpinnerRank.ItemSelected += _InfoSpinnerRank_ItemSelected; _InfoSpinnerTank.ItemSelected += _InfoSpinnerTank_ItemSelected; _InfoSpinnerPotentialEnemyTank.ItemSelected += _InfoSpinnerPotentialEnemyTank_ItemSelected; //**// }