private void SetDataToView() { if (App.Locator.AddSeekios.IsAdding) { ToolbarPage.SetTitle(Resource.String.addseekios_addSeekios); DeleteButton.Visibility = ViewStates.Gone; BuySeekiosButton.Visibility = ViewStates.Visible; NotificationTrackingSwitch.Visibility = ViewStates.Gone; NotificationZoneSwitch.Visibility = ViewStates.Gone; NotificationDontModeSwitch.Visibility = ViewStates.Gone; (FindViewById <TextView>(Resource.Id.notificationNewLocationTracking_textView)).Visibility = ViewStates.Gone; (FindViewById <TextView>(Resource.Id.notificationNewLocationOutOfZone_textView)).Visibility = ViewStates.Gone; (FindViewById <TextView>(Resource.Id.notificationNewLocationMoved_textView)).Visibility = ViewStates.Gone; } else { ToolbarPage.SetTitle(Resource.String.addseekios_updateSeekios); DeleteButton.Visibility = ViewStates.Visible; BuySeekiosButton.Visibility = ViewStates.Gone; SetSeekiosDataToView(); NotificationTrackingSwitch.Checked = App.Locator.AddSeekios.UpdatingSeekios.SendNotificationOnNewTrackingLocation; NotificationZoneSwitch.Checked = App.Locator.AddSeekios.UpdatingSeekios.SendNotificationOnNewOutOfZoneLocation; NotificationDontModeSwitch.Checked = App.Locator.AddSeekios.UpdatingSeekios.SendNotificationOnNewDontMoveLocation; } }
protected override void OnCreate(Bundle bundle) { SetContentView(Resource.Layout.AlertSOSLayout); base.OnCreate(bundle); GetObjectsFromView(); SetDataToView(); ToolbarPage.SetTitle(Resource.String.alertSOS_pagetitle); SetSupportActionBar(ToolbarPage); SupportActionBar.SetDisplayHomeAsUpEnabled(true); }
/// <summary> /// View creation /// </summary> protected override void OnCreate(Bundle bundle) { SetContentView(Resource.Layout.NeedUpdateActivity); base.OnCreate(bundle); GetObjectsFromView(); if (ToolbarPage != null) { ToolbarPage.SetTitle(Resource.String.needUpdate_title); SetSupportActionBar(ToolbarPage); SupportActionBar.SetDisplayHomeAsUpEnabled(true); } }
protected override void OnCreate(Bundle savedInstanceState) { SetContentView(Resource.Layout.ListTutorialLayout); base.OnCreate(savedInstanceState); GetObjectsFromView(); SetDataToView(); if (ToolbarPage != null) { ToolbarPage.SetTitle(Resource.String.listTutorial_title); SetSupportActionBar(ToolbarPage); SupportActionBar.SetDisplayHomeAsUpEnabled(true); } }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.ReloadCreditLayout); GetObjectsFromView(); SetDataToView(); if (ToolbarPage != null) { ToolbarPage.SetTitle(Resource.String.reloadCredit_title); SetSupportActionBar(ToolbarPage); SupportActionBar.SetDisplayHomeAsUpEnabled(true); } LoadInAppBilling(); }
protected override void OnCreate(Bundle bundle) { SetContentView(Resource.Layout.ModeTrackingLayout); base.OnCreate(bundle); GetObjectsFromView(); SetDataToView(); if (ToolbarPage != null) { ToolbarPage.SetTitle(Resource.String.trackingConfiguration_title); SetSupportActionBar(ToolbarPage); SupportActionBar.SetDisplayHomeAsUpEnabled(true); } PowerSavingSwitch.Checked = App.Locator.ModeTracking.TrackingSetting.IsPowerSavingEnabled; PowerSavingSwitchCheckedChanged(PowerSavingSwitch, null); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.ParameterLayout); GetObjectsFromView(); SetDataToView(); _cameraService = new CameraService(this); _connectionService.Initialize(this, ConnectivityService); if (ToolbarPage != null) { ToolbarPage.SetTitle(Resource.String.parameter_actionBarTitle); SetSupportActionBar(ToolbarPage); SupportActionBar.SetDisplayHomeAsUpEnabled(true); } }
protected override void OnCreate(Bundle bundle) { SetContentView(Resource.Layout.AlertLayout); base.OnCreate(bundle); GetObjectsFromView(); SetDataToView(); if (ToolbarPage != null) { ToolbarPage.SetTitle(Resource.String.alert_title); SetSupportActionBar(ToolbarPage); SupportActionBar.SetDisplayHomeAsUpEnabled(true); } if (App.Locator.ModeZone.EditingAlerts) { DeleteButton.Visibility = ViewStates.Visible; } }
private void SetDataToView() { LoadingLayout.Visibility = ViewStates.Visible; ToolbarPage.SetTitle(Resource.String.reloadCredit_title); }