public DataSet GetServiceCallsBetweenDateDataSet(ServiceCalls serviceCall) { DataSet ds = new DataSet(); ds.Tables.Add(Services.ServiceCallsServices.Instance.GetServiceCallsBetweenDate(serviceCall.daysToShow)); return(ds); }
public void Init() { if (ServiceCalls.IsInDesignMode()) { return; } InitializeComboBoxDatasource(TipoAlergia.AnimalAllergy); InitializeComboBoxDatasource(TipoAlergia.ChemicalAllergy); InitializeComboBoxDatasource(TipoAlergia.FoodAllergy); InitializeComboBoxDatasource(TipoAlergia.InsectAllergy); InitializeComboBoxDatasource(TipoAlergia.MedicamentsAllergy); //InitializeComboBoxDatasource(TipoAlergia.MiteAllergy); InitializeComboBoxDatasource(TipoAlergia.PollenAllergy); //InitializeComboBoxDatasource(TipoAlergia.SunAllergy); _PatientAllergy = frmPatientAtencion.GetInstance(this)._PatientAllergy; if (_PatientAllergy.AllergyId == -1) { _PatientAllergy = new PatientAllergyBE(); _PatientAllergy.PatientId = ServiceCalls.CurrentPatient.PatientId; _PatientAllergy.EntityState = Fwk.Bases.EntityState.Added; } else { _PatientAllergy.EntityState = Fwk.Bases.EntityState.Unchanged; } _PatientAllergy_Aux = _PatientAllergy.Clone <PatientAllergyBE>(); PopulateControls(); }
public override void Populate(object filter) { int index = -1; _Evento = ServiceCalls.GetMedicalEvent(MedicalEventId); txtEvolution.Text = _Evento.Evolucion; txtMotivo.Text = _Evento.Motivo; lblProfesional.Text = String.Concat(_Evento.NombreApellidoProfesional, " (", _Evento.NombreEspesialidad, ")"); patientMedicamentViewListBindingSource.DataSource = _Evento.PatientMedicaments; gridView_Medicaments.RefreshData(); if (_Evento.IdTipoConsulta.HasValue) { index = cmbTipoConsulta.Properties.GetDataSourceRowIndex("IdParametro", _Evento.IdTipoConsulta); cmbTipoConsulta.ItemIndex = index; cmbTipoConsulta.Refresh(); } _Evento.DetailView_Diagnosis = _Evento.MedicalEventDetail_ViewList.Get_Diagnosis(); _Evento.DetailView_MetodosComplementarios = _Evento.MedicalEventDetail_ViewList.Get_Metodo_Complementarios(); uC_EventDetailsGrid_Diagnosis.Populate(_Evento); uC_EventDetailsGrid_MetComplementario.Populate(_Evento); base.Populate(filter); }
/// <summary> /// Edición /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gridView1_DoubleClick(object sender, EventArgs e) { using (frmResouceScheduling frm = new frmResouceScheduling()) { if (currentShiftSheduling.EntityState == Fwk.Bases.EntityState.Changed) { frm.ResourceSchedulingList = resourceSchedulingList; frm.State = Fwk.Bases.EntityUpdateEnum.UPDATED; frm.SchedulerShift = currentShiftSheduling; if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { if (frm.SchedulerShift.EntityState == Fwk.Bases.EntityState.Changed) { try { ServiceCalls.UpdateResourceSheduling(frm.SchedulerShift, ServiceCalls.CurrentHealthInstitution.HealthInstitutionId); } catch (Exception ex) { this.ExceptionViewer.Show(ex); return; } } schedulerShiftBindingSource.DataSource = resourceSchedulingList; gridControl1.RefreshDataSource(); } } if (currentShiftSheduling.EntityState == Fwk.Bases.EntityState.Added) { ///Actualiza uno nuevo : Es desir que todavia no esta en la base de datos CreateResourceScheduling(currentShiftSheduling); } } }
private void save_Click(object sender, RoutedEventArgs e) { if (ServiceCalls.UpdateNote(context.UserContext.UserName, context.UserContext.Password, noteheader.Text, notebody.Text)) { Frame.Navigate(typeof(Main), (NavigationContext)context); } }
void UpdateStatus(AppoimantsStatus_SP status) { try { SelectedAppointment.Status = (int)status; //TODO: Set SelectedTimespamView.Appoiment to canceled in database AppointmentList appList = new AppointmentList(); //if (!String.IsNullOrEmpty(SelectedTimespamView.Appointment.GroupId)) appList.Add(SelectedAppointment); //else //{ // var appList_aux = (from s in AppointmentList where s.GroupId.Equals(s) select s).ToList<AppointmentBE>(); // appList_aux.ForEach(p => { p.Status = (int)status; }); // appList.AddRange(appList_aux); //} ServiceCalls.UpdateAppoiment(appList); } catch (Exception ex) { this.ExceptionViewer.Show(ex); } OnChangeStatus(status); //gridControl2.RefreshDataSource(); //gridView2.RefreshData(); Refresh(); }
private async Task AddOrUpdatePolicyHolders() { // Save PolicyHolder record and retrieve Id. ThisPolicyHolder.Id = await ServiceCalls.SavePolicyHolder(ThisPolicyHolder); // If this is a new policy holder, we need to generate the Policy Number // and update the file path, if necessary. if (Operation == CrudOperation.Add) { var person = (Person)CbxPersonId.SelectedItem; ThisPolicyHolder.PolicyNumber = Contoso.Apps.Common.PolicyGeneratorMethods.PolicyNumberGenerator(person.LName, ThisPolicyHolder.Id); if (string.IsNullOrWhiteSpace(ThisPolicyHolder.FilePath)) { ThisPolicyHolder.FilePath = @"\" + Contoso.Apps.Common.PolicyGeneratorMethods.PdfFilenameGenerator(person.LName, ThisPolicyHolder.PolicyNumber); } await ServiceCalls.SavePolicyHolder(ThisPolicyHolder); } if (this.Parent.GetType() == typeof(PolicyHoldersForm)) { ((PolicyHoldersForm)this.Parent).RefreshGrid = true; } }
/// <summary> /// /// Almacen del Appoiment /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void asignarToolStripMenuItem_Click(object sender, EventArgs e) { using (frmShiftAppointment frm = new frmShiftAppointment()) { AppointmentBE app = new AppointmentBE(); frm.Profesional = profesional; frm.State = Fwk.Bases.EntityUpdateEnum.NEW; app.Status = (int)AppoimantsStatus_SP.Reservado; app.ResourceId = profesional.IdProfesional; app.HealthInstitutionId = ServiceCalls.CurrentHealthInstitution.HealthInstitutionId; DateTime date = Fwk.HelperFunctions.DateFunctions.GetStartDateTime(this.Date); List <TimespamView> wTimespamViewList = null; try { wTimespamViewList = GetSelectedShifts(); } catch (Exception ex) { this.ExceptionViewer.Show(ex); return; } app.Start = date.Add(wTimespamViewList[0].Time); app.Duration = wTimespamViewList[0].Duration; if (wTimespamViewList.Count > 1) { app.End = date.Add(wTimespamViewList[wTimespamViewList.Count - 1].Time); } else { app.End = date.Add(wTimespamViewList[0].Time).AddMinutes(wTimespamViewList[0].Duration); } frm.currentApt = app; frm.Refresh(); if (frm.ShowDialog() == DialogResult.OK) { ///todo: analizar como crear grupos de turnos foreach (TimespamView timeView in wTimespamViewList) { timeView.Appointment = app; } try { ServiceCalls.CreateAppointments(app); if (OnCreateAppoimentsEvent != null) { OnCreateAppoimentsEvent(app, new EventArgs()); } } catch (Exception ex) { this.ExceptionViewer.Show(ex); } gridControl2.RefreshDataSource(); gridView2.RefreshData(); } } }
private void gridView1_CellValueChanged(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e) { PlanVacunacion_FullViewList list_to_update = null; PlanVacunacion_FullViewBE plan = null; //Esta columnba puede altearar otras vacunas del plan y ismo grupo //gridView1.GetRow(gridView1.FocusedRowHandle); if (e.Column == colFechaColocacion) { list_to_update = new PlanVacunacion_FullViewList(); } { plan = ((PlanVacunacion_FullViewBE)gridView1.GetRow(gridView1.FocusedRowHandle)); var x = _PlanVacunacion_FullViewList.Where <PlanVacunacion_FullViewBE>(p => p.Grupo.Equals(plan.Grupo)); list_to_update = new PlanVacunacion_FullViewList(); list_to_update.AddRange(x.ToList <PlanVacunacion_FullViewBE>()); } if (e.Column == colNombreProfesionalQueColoco || (e.Column == colLote)) { list_to_update = new PlanVacunacion_FullViewList(); plan = ((PlanVacunacion_FullViewBE)gridView1.GetRow(gridView1.FocusedRowHandle)); list_to_update.Add(plan); } if (list_to_update != null) { ServiceCalls.Patient_UpdatePlanVacunacion(list_to_update); } }
public override void Refresh() { profesionalFullViewBEBindingSource.DataSource = ServiceCalls.RetriveProfesionales(null, null, ServiceCalls.CurrentHealthInstitution.HealthInstitutionId); gridView1.RefreshData(); grdPersonas.RefreshDataSource(); base.Refresh(); }
void Update_ShiftsControls() { if (DesignMode) { return; } if (SelectedProfesionalBE == null) { return; } //Obtener la programacion del profesional RetriveResourceSchedulingAndAppoinmentsRes res = ServiceCalls.RetriveResourceSchedulingAndAppoinments(SelectedProfesionalBE.IdProfesional, CurrentDateTime, false, ServiceCalls.CurrentHealthInstitution.HealthInstitutionId); if (uc_ShiftsControls1.profesional != SelectedProfesionalBE) { if (SelectedProfesionalBE.Foto != null) { if (SelectedProfesionalBE.Foto != null) { this.pictureEdit1.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Stretch; pictureEdit1.Image = Fwk.HelperFunctions.TypeFunctions.ConvertByteArrayToImage(SelectedProfesionalBE.Foto); } else { this.pictureEdit1.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Clip; if (SelectedProfesionalBE.Sexo.Equals((Int16)Sexo.Masculino)) { pictureEdit1.Image = Health.Front.Base.Properties.Resource.User_M; } else { pictureEdit1.Image = Health.Front.Base.Properties.Resource.User_F; } } } uc_ShiftsControls1.profesional = SelectedProfesionalBE; lblProfesional.Text = SelectedProfesionalBE.ApellidoNombre; lblEspesialidad.Text = SelectedProfesionalBE.NombreEspecialidad; } if (uc_ShiftsControls1.Date != CurrentDateTime) { uc_ShiftsControls1.Date = CurrentDateTime; lblFechaSeleccionada.Text = CurrentDateTime.ToLongDateString(); } uc_ShiftsControls1.ShiftSchedulingList = res.BusinessData.ResourceSchedulerList; uc_ShiftsControls1.AppointmentList = res.BusinessData.AppoimentsList; ProfesionalSchedulerList = res.BusinessData.ResourceSchedulerList; lblDAysWeek.Text = uc_ShiftsControls1.ShiftSchedulingList.GetCommonDays().Replace("|", ", "); uc_ShiftsControls1.Refresh(); }
private void cmbPaices_EditValueChanged(object sender, EventArgs e) { cmbProvincia.Properties.DataSource = ServiceCalls.SearchParametroByParams((int)TipoParametroEnum.Provincia, Convert.ToInt32(cmbPaices.EditValue));//Provincias de Arg cmbProvincia.ItemIndex = 0; cmbProvincia.Refresh(); cmbLocalidad.Properties.DataSource = ServiceCalls.SearchParametroByParams((int)TipoParametroEnum.Localidad, Convert.ToInt32(cmbProvincia.EditValue));//Localidades de Cordoba cmbLocalidad.ItemIndex = 0; cmbLocalidad.Refresh(); }
public override void Populate(object filter) { _SelectedPatientBE = (PatientBE)filter; ///Retrive appointmentListBindingSource.DataSource = ServiceCalls.RetrivePatientAppoinments(_SelectedPatientBE.PatientId, System.DateTime.Now, null); this.uc_PatientCard1.Populate(filter); }
public override void Refresh() { _PlanVacunacion_FullViewList = ServiceCalls.Patient_GetPlanVacunacion(ServiceCalls.CurrentPatient.PatientId); this.planVacunacionFullViewListBindingSource.DataSource = _PlanVacunacion_FullViewList; //foreach(string gridControl1.RefreshDataSource(); base.Refresh(); }
public override void Refresh() { uc_shedule_profesional_timeline1.SetDateChanged(monthCalendar1.SelectionStart); profesionalFullViewBEBindingSource.DataSource = ServiceCalls.RetriveProfesionales(null, null, ServiceCalls.CurrentHealthInstitution.HealthInstitutionId); gridView2.RefreshData(); gridControl2.RefreshDataSource(); base.Refresh(); }
private async Task AddOrUpdateDependents() { // Save Dependent record and retrieve Id. ThisDependent.Id = await ServiceCalls.SaveDependent(ThisDependent); if (this.Parent.GetType() == typeof(DependentsForm)) { ((DependentsForm)this.Parent).RefreshGrid = true; } }
private async Task AddOrUpdatePeople() { // Save Person record and retrieve Id. Person.Id = await ServiceCalls.SavePerson(Person); if (this.Parent.GetType() == typeof(PeopleForm)) { ((PeopleForm)this.Parent).NewPerson = Person; } }
void UpdateStatus(AppoimantsStatus_SP status) { AppointmentList appList = new AppointmentList(); SelectedTimespamView.Appointment.Status = (int)status; if (status.Equals(AppoimantsStatus_SP.Cancelado)) { if (SelectedTimespamView.Appointment.IsExceptional) { appList.Add(SelectedTimespamView.Appointment); ServiceCalls.RemoveAppoiment(SelectedTimespamView.Appointment.AppointmentId); OnChangeStatus(status); Refresh(); return; } } // AppointmentBE app = SelectedTimespamView.Appointment.Clone<AppointmentBE>(); // app.Subject = string.Concat(Enum.GetName(typeof(AppoimantsStatus_SP),status), " a las : ", SelectedTimespamView.Appointment.TimeEnd); // app.Status = (int)status; // appList.Add(app); // try // { // Controller.CreateAppointments(app); // if (OnCreateAppoimentsEvent != null) // OnCreateAppoimentsEvent(app, new EventArgs()); // } // catch (Exception ex) // { // this.ExceptionViewer.Show(ex); // } //} try { appList.Add(SelectedTimespamView.Appointment); ServiceCalls.UpdateAppoiment(appList); OnChangeStatus(status); Refresh(); } catch (Exception ex) { this.ExceptionViewer.Show(ex); } }
private void gridView2_DoubleClick(object sender, EventArgs e) { //Esta siendo consultado por un medico //if (profesional.IdProfesional != null && profesional.IdProfesion.Value.Equals((int)RubroProfesionalEnum.Medico)) //{ // if (SelectedAppointment.Status == (int)AppoimantsStatus_SP.Reservado) // { // //Actualizar el estado a En atencion // UpdateStatus(AppoimantsStatus_SP.EnAtencion); // } //} //else //{ if (SelectedAppointment == null) { return; } ///Ver - consultar using (frmShiftAppointment frm = new frmShiftAppointment()) { frm.State = Fwk.Bases.EntityUpdateEnum.NONE; //Este caso se presenta cuando la consulta no es por medio del mismo profesional //sino de una secretaria que ve turnos de varios //profesionales frm.Profesional = new Profesional_FullViewBE(); frm.AceptCancelButtonBar_Visible = false; if (this.profesional == null) { //Busco el profesional this.profesional = ServiceCalls.GetProfesional(SelectedAppointment.ResourceId, false, false, false).BusinessData.profesional; //Relleno frm.profesional con info minima frm.Profesional.Nombre = this.profesional.Persona.Nombre; frm.Profesional.Apellido = this.profesional.Persona.Apellido; frm.Profesional.IdEspecialidad = this.profesional.IdEspecialidad; frm.Profesional.NombreEspecialidad = this.profesional.NombreEspecialidad; frm.Profesional.IdProfesion = this.profesional.IdProfesion; } else { frm.Profesional.Nombre = this.profesional.Persona.Nombre; frm.Profesional.Apellido = this.profesional.Persona.Apellido; frm.Profesional.IdEspecialidad = this.profesional.IdEspecialidad; frm.Profesional.NombreEspecialidad = this.profesional.NombreEspecialidad; frm.Profesional.IdProfesion = this.profesional.IdProfesion; } frm.currentApt = SelectedAppointment; frm.Refresh(); frm.ShowDialog(); } //} }
public override void Populate(object filter) { PatientBE patient = (PatientBE)filter; if (ServiceCalls.IsInDesignMode()) { return; } cmbTipoDoc.Properties.DataSource = ServiceCalls.SearchParametroByParams((int)TipoParametroEnum.TipoDocumento, null); cmbTipoDoc.Refresh(); txtNombres.Text = patient.Persona.ApellidoNombre; txtDocumento.Text = patient.Persona.NroDocumento; cmbTipoDoc.EditValue = patient.Persona.TipoDocumento; if (patient.Persona.Foto != null) { this.pictureEdit1.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Stretch; pictureEdit1.Image = Fwk.HelperFunctions.TypeFunctions.ConvertByteArrayToImage(patient.Persona.Foto); } if (patient.Persona.Foto == null) { this.pictureEdit1.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Clip; } if (patient.Persona.Sexo.Equals((Int16)Sexo.Masculino)) { rndSexoM.Checked = true; if (patient.Persona.Foto == null) { pictureEdit1.Image = Health.Front.Base.Properties.Resource.User_M; } } else { rndSexoF.Checked = true; if (patient.Persona.Foto == null) { pictureEdit1.Image = Health.Front.Base.Properties.Resource.User_F; } } int index = 0; //txtDocumento.Enabled = false; //cmbTipoDoc.Enabled = false; dtFechaNac.EditValue = patient.Persona.FechaNacimiento; index = cmbTipoDoc.Properties.GetDataSourceRowIndex("IdParametro", patient.Persona.TipoDocumento); cmbTipoDoc.ItemIndex = index; }
public IEnumerable <ServiceCalls> GetServiceCallsBetweenDate(DateTime dateOpenCalls) { var serviceCalls = new ServiceCalls(dateOpenCalls); var serviceToCompanies = ServiceCallsDataServices.Instance.GetServiceCallsBetweenDate(serviceCalls.MapTo(new ServiceCall())); return(serviceToCompanies.Select(serivceToCompanie => serivceToCompanie.MapTo(new ServiceCalls())).ToList()); /*serivceToCompanie.Company.companyName, serivceToCompanie.Priority.TypePriority, * serivceToCompanie.idCallsServices, serivceToCompanie.dateOpenCalls, serivceToCompanie.discriptions, serivceToCompanie.idCompany, * serivceToCompanie.idPriority)).ToList();*/ }
public TestSuiteFixture() { ServiceCalls = new ServiceCalls(); EnvBuilder(); BaseApiClient = new BaseApiClient(); MongoApi = new MongoApiClient(ServiceCalls.MongoApiService); RandomizerApi = new RandomizerApiClient(); RandomizerUrl = ServiceCalls.RandomizerApiService; AuthenicationApi = new AuthenticationApiClient(); AuthenticationUrl = ServiceCalls.AuthenticationApiService; }
private async void AddNewDependentToList(object dependentsForm) { if (dependentsForm == null || dependentsForm.GetType() != typeof(DependentsForm) || ((DependentsForm)dependentsForm).RefreshGrid == false) { return; } Dependents = await ServiceCalls.GetDependentsByPolicyHolder(ThisPolicyHolder.Id); dependentBindingSource.DataSource = null; dependentBindingSource.DataSource = Dependents; }
private void uc_AllShiftGrid1_ChangeStatusEvent(object sender, EventArgs e) { if (((AppoimantsStatus_SP)sender) == AppoimantsStatus_SP.EnAtencion) { this.Appointment = this.uc_TimeLine1.SelectedAppointment; GetPatientRes res = ServiceCalls.GetPatient(this.Appointment.ProfesionalAppointment.PatientId); this.Patient = res.BusinessData.Patient; this.DialogResult = System.Windows.Forms.DialogResult.OK; this.Close(); } }
public override void Populate(object filter) { _Evento = frmPatientAtencion.GetInstance(this).MedicalEvent; cmbTipoConsulta.Properties.DataSource = ServiceCalls.TipoEventoMedicoList; cmbTipoConsulta.Refresh(); //this.cEI10ComboBindingSource.DataSource = Controller.CEI_10ComboList; //this.pMOFileListBindingSource.DataSource = Controller.PMOFileList.Where(p => // (p.Type.Equals((int)PMOEnum.Diagnostico_Imagenes) || // p.Type.Equals((int)PMOEnum.Odontológicas) || // p.Type.Equals((int)PMOEnum.Diagnostico_Analisis_Clinico)) && // p.HasChild.Equals(false)).OrderBy(p => p.Id); //var pmo = Controller.PMOFileList.Where(p => // (p.Type.Equals((int)PMOEnum.Diagnostico_Imagenes) || // p.Type.Equals((int)PMOEnum.Odontológicas) || // p.Type.Equals((int)PMOEnum.Diagnostico_Analisis_Clinico)) && // p.HasChild.Equals(false)).OrderBy(p => p.Id); //Int32 c = pmo.Count(); //this.pMOFileListBindingSource.DataSource = pmo; this.pMOFileListBindingSource_Quirurgico.DataSource = ServiceCalls.PMOFileList.Where(p => p.Type.Equals((int)PMOEnum.Quirurgicas) && p.HasChild.Equals(false)).OrderBy(p => p.Id); _Evento.PatientMedicaments = ServiceCalls.RetrivePatientMedicaments(ServiceCalls.CurrentPatient.PatientId, null); //Nunca traera del evento _Event dado que es recientemente creado y no posee aun Detalles if (_Evento.DetailView_Diagnosis == null) { _Evento.DetailView_Diagnosis = new MedicalEventDetail_ViewList(); } if (_Evento.DetailView_MetodosComplementarios == null) { _Evento.DetailView_MetodosComplementarios = new MedicalEventDetail_ViewList(); } //Medicamentos patientMedicamentViewListBindingSource.DataSource = _Evento.PatientMedicaments; gridView_Medicaments.RefreshData(); //Diagnosis uC_EventDetailsGrid_Diagnosis.Populate(_Evento); //MetComplementario uC_EventDetailsGrid_MetComplementario.Populate(_Evento); base.Populate(filter); }
private static ServiceCall ConvertServicesToCompanies(ServiceCalls serviceCalls) { return(new ServiceCall { idCallsServices = serviceCalls.idCallsServices, dateOpenCalls = serviceCalls.dateOpenCalls, idCompany = serviceCalls.idCompany, idPriority = serviceCalls.idPriority, discriptions = serviceCalls.discriptions, }); }
void FindInst() { try { healthInstitutionBEBindingSource.DataSource = ServiceCalls.RetriveHealthInstitutionList(txtSearchText.Text.Trim()); gridView1.RefreshData(); } catch (Exception ex) { this.ExceptionViewer.Show(ex); } }
private void listview_SelectionChanged(object sender, SelectionChangedEventArgs e) { var si = (ListViewItem)listview.SelectedItem; var name = si.Content; var selectedNote = notes.FirstOrDefault(x => x.Name == name.ToString()); if (ServiceCalls.DeleteNote(context.UserContext.UserName, context.UserContext.Password, name.ToString())) { listview.Items.Remove(selectedNote); Frame.Navigate(typeof(ListDelete), context); } }
public object Execute(ExecutorContext context) { var cmdletContext = context as CmdletContext; var request = new PutBucketRequest(); if (cmdletContext.BucketName != null) { request.BucketName = cmdletContext.BucketName; } if (cmdletContext.CannedACL != null) { request.CannedACL = cmdletContext.CannedACL.Value; } // Forcibly set a location constraint to match whatever Region argument was used // with the cmdlet; this will prevent S3 issuing the "unspecified location constraint // didn't match" message, potentially confusing new users. request.BucketRegionName = _RegionEndpoint.SystemName; if (cmdletContext.ObjectLockEnabledForBucket != null) { request.ObjectLockEnabledForBucket = cmdletContext.ObjectLockEnabledForBucket.Value; } ServiceCalls.PushServiceRequest(request, this.MyInvocation); using (var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint)) { CmdletOutput output; try { var response = CallAWSServiceOperation(client, request); object pipelineOutput = null; pipelineOutput = cmdletContext.Select(response, this); output = new CmdletOutput { PipelineOutput = pipelineOutput, ServiceResponse = response }; } catch (Exception e) { output = new CmdletOutput { ErrorResponse = e }; this.WriteError(new ErrorRecord(e, $"Failed to create the specified bucket.\r\nAmazon S3 error: {e.Message}", ErrorCategory.InvalidOperation, this)); } return(output); } }
private async void btnDelete_Click(object sender, EventArgs e) { if (MessageBox.Show(this, "Are you sure you want to remove this dependent?", "Remove Dependent?", MessageBoxButtons.YesNo) == DialogResult.Yes) { ServiceCalls.DeleteDependent(Id); if (this.Parent.GetType() == typeof(DependentsForm)) { ((DependentsForm)this.Parent).RefreshGrid = true; } WindowHelper.CloseParent(this); } }
public ExecutionHistory() { ServiceCalls = new ServiceCalls(); }