void _client_Consulta_BajarCoordenadasEmpleadosCompleted(object sender, BajarCoordenadasEmpleadosCompletedEventArgs CoordenadasBajadas) { Intent detailIntent = null; if (CoordenadasBajadas.Error != null) { alerta = HelperMethods.setAlert(HelperMethods.problemaConexion, this); RunOnUiThread(() => { progress.Hide(); alerta.Show(); BotonEnviar.Enabled = true; }); } else { if (CoordenadasBajadas.Result != null) { Perfil_Login.ListaCoordenadasEmpleado = CoordenadasBajadas.Result; switch (Intent.GetStringExtra(GetString(Resource.String.ConsultaIntentKey))) { case "InformesActivity": detailIntent = new Intent(Application.Context, typeof(InformesDataGridActivity)); detailIntent.PutExtra(Resources.GetString(Resource.String.InformesIntentKey), Intent.GetStringExtra(GetString(Resource.String.TipoInforme))); break; default: detailIntent = new Intent(Application.Context, typeof(AcquaintanceDetailActivity)); detailIntent.PutExtra(Resources.GetString(Resource.String.acquaintanceDetailIntentKey), idUsuarioSeleccionado); detailIntent.PutExtra(Resources.GetString(Resource.String.ConsultaIntentKey), true); AcquaintanceDetailActivity.getInstance().Finish(); break; } RunOnUiThread(() => { StartActivity(detailIntent); HelperMethods.makeTransition(this); Finish(); }); } else { alerta = HelperMethods.setAlert("No se Encontraron Registros", this); RunOnUiThread(() => { progress.Hide(); alerta.Show(); BotonEnviar.Enabled = true; }); } } }
protected override void OnCreate(Bundle savedInstanceState) { shouldExecuteOnResume = false; base.OnCreate(savedInstanceState); View acquaintanceDetailLayout = LayoutInflater.Inflate(Resource.Layout.AcquaintanceDetail, null); SetContentView(acquaintanceDetailLayout); toolbar = FindViewById <Toolbar>(Resource.Id.toolbar); SetSupportActionBar(toolbar); // ensure that the system bar color gets drawn Window.AddFlags(WindowManagerFlags.DrawsSystemBarBackgrounds); // enable the back button in the action bar SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetHomeButtonEnabled(true); // extract the acquaintance id fomr the intent IdEmpleado = Intent.GetIntExtra(GetString(Resource.String.acquaintanceDetailIntentKey), 0); vengoConsulta = Intent.GetBooleanExtra(GetString(Resource.String.ConsultaIntentKey), false); empleado = HelperMethods.getUserById(IdEmpleado); nombreCompletoEmpleado = HelperMethods.DisplayName(empleado); // set the activity title and action bar title Title = SupportActionBar.Title = nombreCompletoEmpleado; SetupViews(acquaintanceDetailLayout, savedInstanceState); HelperMethods.SetupAnimations(this); mPolylineOptions = new PolylineOptions(); mPolylineOptions.InvokeColor(Color.Blue).InvokeWidth(10); //Should call this to let the map showing shouldExecuteOnResume = true; Instance = this; OnResume(); }
internal CustomInfoWindowAdapter(AcquaintanceDetailActivity parent) { this.parent = parent; mWindow = parent.LayoutInflater.Inflate(Resource.Layout.custom_info_window, null); }