protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); // Access view and make it draggable draggableView = FindViewById <ACView>(Resource.Id.draggableView); draggableView.draggable = true; // Get our button from the layout resource, // and attach an event to it //Button button = FindViewById<Button>(Resource.Id.myButton); //button.Click += delegate { button.Text = $"{count++} clicks!"; }; }
void ReleaseDesignerOutlets() { if (ACButton != null) { ACButton.Dispose(); ACButton = null; } if (ACModsView != null) { ACModsView.Dispose(); ACModsView = null; } if (ACView != null) { ACView.Dispose(); ACView = null; } if (ArmorButton != null) { ArmorButton.Dispose(); ArmorButton = null; } if (DefensiveAbilitiesButton != null) { DefensiveAbilitiesButton.Dispose(); DefensiveAbilitiesButton = null; } if (DeflectionButton != null) { DeflectionButton.Dispose(); DeflectionButton = null; } if (DodgeButon != null) { DodgeButon.Dispose(); DodgeButon = null; } if (DRButton != null) { DRButton.Dispose(); DRButton = null; } if (FlatFootedButton != null) { FlatFootedButton.Dispose(); FlatFootedButton = null; } if (FortButton != null) { FortButton.Dispose(); FortButton = null; } if (HDButton != null) { HDButton.Dispose(); HDButton = null; } if (HPButton != null) { HPButton.Dispose(); HPButton = null; } if (HPModsButton != null) { HPModsButton.Dispose(); HPModsButton = null; } if (HPView != null) { HPView.Dispose(); HPView = null; } if (ImmuneButton != null) { ImmuneButton.Dispose(); ImmuneButton = null; } if (NaturalButton != null) { NaturalButton.Dispose(); NaturalButton = null; } if (OtherView != null) { OtherView.Dispose(); OtherView = null; } if (RefButton != null) { RefButton.Dispose(); RefButton = null; } if (ResistButton != null) { ResistButton.Dispose(); ResistButton = null; } if (SavesView != null) { SavesView.Dispose(); SavesView = null; } if (ShieldButton != null) { ShieldButton.Dispose(); ShieldButton = null; } if (SRButton != null) { SRButton.Dispose(); SRButton = null; } if (TouchButton != null) { TouchButton.Dispose(); TouchButton = null; } if (WeaknessButton != null) { WeaknessButton.Dispose(); WeaknessButton = null; } if (WillButton != null) { WillButton.Dispose(); WillButton = null; } }