private void wchConfig_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { switch (e.Page.Name) { case "wchPageDatabase": if (!DatabaseCheck(txtHost, txtPort, txtDatasource, txtDatabase, txtSchema, txtUser, txtPassword)) { e.Handled = true; wchConfig.SelectedPage = wchPageDatabase; sPageName = "wchPageDatabase"; } else { sPageName = "wchPageDisplay"; if (SqlConn == null || SqlConn.State != ConnectionState.Open) { Database.Open(ref this.SqlConn); } ts.LoadAll(SqlConn); if (ts.Header != "") { txtHeader.Text = ts.Header; } if (ts.Footer != "") { txtFooter.Text = ts.Footer; } if (ts.SoDongHienThi > 0) { txtSoDongHienThiDuLieu.Text = ts.SoDongHienThi.ToString(); } if (ts.TGHienThi > 0) { txtThoiGianHienThiDuLieu.Text = ts.TGHienThi.ToString(); } } break; case "wchPageDisplay": ts.Header = txtHeader.Text; ts.Footer = txtFooter.Text; ts.SoDongHienThi = txtSoDongHienThiDuLieu.Text == "" ? 0 : Convert.ToInt16(txtSoDongHienThiDuLieu.Text); ts.TGHienThi = txtThoiGianHienThiDuLieu.Text == "" ? 0 : Convert.ToInt16(txtThoiGianHienThiDuLieu.Text); ts.Update(SqlConn); // Database.SoLanHienThiThongBaoTraXe = txtSoLanThongBao.Text == "" ? 0 : Convert.ToInt32(txtSoLanThongBao.Text); Database.TocDoHieuUngThongBaoTraXe = txtTocDoThongBao.Text == "" ? 0 : Convert.ToInt32(txtTocDoThongBao.Text); Database.MauChuThongBaoTraXe = colorThongBao.Color; Database.MauChuThongTinTraXe = colorThongTin.Color; Database.SaveConfig(); break; case "wchPageWelcome": sPageName = "wchPageDatabase"; break; default: break; } }
private void WizardControl_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { if (e.Page == wzpOutputs) { this.EncoderInputs = Convert.ToInt32(rdgOutputs.EditValue); if (this.EncoderInputs <= 0 && (int)spnOutputs.Value <= 0) // 0 means custom number { MessageBox.Show("Feedback encoders must have at least 1 input.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Warning); e.Handled = true; } else if (Convert.ToInt32(rdgOutputs.EditValue) <= 0) { this.EncoderInputs = (int)spnOutputs.Value; } } else if (e.Page == wzpAddress) { this.StartAddress = Convert.ToInt32(spnAddress.EditValue); if (this.StartAddress == 1 && (int)spnAddress.Value <= 0) { MessageBox.Show(string.Format("Encoder inputs must start at least at address {0:0000}.", OTCContext.Project.DigitalSystem.AccessoryAddressRange.Minimum), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Warning); e.Handled = true; } else { lblSummary.Text = this.GetFinishSummary(); } } }
private void wizardControl_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { if (e.Page == wizardPageRdfUrl) { if (textEditUrl.DoValidate()) { LocalRdf = false; wizardControl.SelectedPage = wizardPageBasicQuery; PrepareRdfQueryParameters(); } } if (e.Page == wizardPageRdfFile) { PrepareRdfQueryParameters(); } if (e.Page == wizardPageBasicQuery) { if (IsParametersCorrect()) { PrepareRdfQuery(); this.DialogResult = DialogResult.Yes; this.Close(); } else { XtraMessageBox.Show("Podałes za dużo widocznych elementów", "Błąd", MessageBoxButtons.OK, MessageBoxIcon.Error); e.Handled = true; } } }
private void wizardControl_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { switch (wizardControl.SelectedPageIndex) { case 0: e.Handled = !ValidateDatasouce(); break; case 1: e.Handled = !ValidatePathAndName(); break; case 2: e.Handled = !ValidatePrimaryArgs(); break; case 3: e.Handled = !ValidateAppendArgs(); if (!e.Handled) { ShowInformation(); } break; default: break; } }
private void wizardControlActualizar_Archivo_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { try { switch (e.Page.Name) { case "wpArchivo_Seleccionado": break; case "wpArchivos_actuales": Reg_inCorrecto = ValidarRegistros_academico(); lblError.Visible = !Reg_inCorrecto; Bandera_pagina = Reg_inCorrecto; break; case "wpArchivo_Actualizado": ValidarRegistros_academico(); break; default: break; } } catch (Exception ex) { string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name; MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Error_comunicarse_con_sistemas) + ex.Message + " ", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString()); } }
private void wizardControlConciliacion_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { if (e.Page == WizardPage_Paso1_select_excel) { Cargar_excel_en_grilla(); } }
private void wizardTuning_PrevClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { // Uncheck confirmation when used clicked back from confirmation page. He is ambivalent. if (e.Page.Name == "wizConfirmPage") { this.checkIUnderstand.Checked = false; } }
private void wcModule_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { if (e.Page == wpSelectModule) { object FocusedRow = grvModule.GetFocusedRow(); selectedModule = (DB.VW_Module)((DevExpress.Data.Async.Helpers.ReadonlyThreadSafeProxyForObjectFromAnotherThread)FocusedRow).OriginalRow; } }
/// <summary> /// 引导各画面的上一步按钮点击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void wizardControl1_PrevClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { switch (e.Page.Name.Trim()) { case "PageFinish": this.txtFilePath.Text = string.Empty; break; } }
private void wizardControl1_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { wpgaccesorios.AllowNext = false; wpgconfiguracion.AllowNext = false; wpgdiscoduro.AllowNext = false; wpgDisquete.AllowNext = false; wpgdvd.AllowNext = false; wpgequipo.AllowNext = false; wpgfax.AllowNext = false; wpgfotocopiadora.AllowNext = false; wpgimpresora.AllowNext = false; wpginsertar.AllowNext = false; wpgmoitor.AllowNext = false; wpgscaner.AllowNext = false; wpgseleccion.AllowNext = false; wpgswitch.AllowNext = false; wpgusuario.AllowNext = false; wpgbackup.AllowNext = false; ValidarBackup(); ValidarAccesorios(); ValidarConfiguracion(); ValidarDiscoduro(); ValidarDisquete(); ValidarDVD(); ValidarEquipo(); ValidarFax(); ValidarFotocopiadora(); ValidarImpresora(); ValidarMonitor(); ValidarScaner(); ValidarSeleccion(); Validarswitch(); ValidarUsuario(); if (wizardControl1.SelectedPage == wpgseleccion) { if (checkseleccionar.SelectedItems.Count > 0) { wpgseleccion.AllowNext = true; } } if (wizardControl1.SelectedPage == wpgdiscoduro) { if (listDiscosDuros.Count == 0) { DiscoDuro dd = new DiscoDuro(); dd.descripcion = txtdiscodurodescrpcion.Text; dd.capacidad = txtcapacidad.Text; dd.noserie = txtdiscoduronoserie.Text; listDiscosDuros.Add(dd); } } }
private void wizardControl1_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { if (wizardControl1.SelectedPage == SourcePage) { SetPagesState(); } if (wizardControl1.SelectedPage == ChoseTypePage) { TypeItemPage.AllowNext = false; } }
private void wizardImportacionNovedad_Empleado_PrevClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { try { Bandera_ValidarPagina = true; } catch (Exception ex) { MessageBox.Show(ex.ToString()); Log_Error_bus.Log_Error(ex.ToString()); } }
/// <summary> /// 下一步点击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void wizardControlInit_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { if (e.Page == wizardPageTemplateSetting) { if (lsbTemplate.SelectedItem == null && lsbTemplate.ItemCount > 0) { e.Handled = true; } else { if (lsbTemplate.SelectedItem != null) { var item = lsbTemplate.SelectedItem.ToString(); var tempName = item.Split('-'); var expressEntity = _expressManager.GetList <BaseExpressEntity>( new KeyValuePair <string, object>(BaseExpressEntity.FieldName, tempName[0])).First(); if (expressEntity != null) { var paramterList = new List <KeyValuePair <string, object> > { new KeyValuePair <string, object>(BaseTemplateEntity.FieldExpressId, expressEntity.Id), new KeyValuePair <string, object>(BaseTemplateEntity.FieldName, tempName[1]) }; var list = _baseTemplateManager.GetList <BaseTemplateEntity>(paramterList); if (list.Any()) { BillPrintHelper.SaveDefaultPrintTemplate(list[0].FilePath); } } } } lsbPrinter.SelectedIndex = 0; } if (e.Page == wizardPagePrinterSetting) { if (lsbPrinter.SelectedItem == null && lsbPrinter.ItemCount > 0) { e.Handled = true; } else { if (lsbPrinter.SelectedItem != null) { var item = lsbPrinter.SelectedItem.ToString(); BillPrintHelper.SaveDefaultPrinterName(item); PrinterHelper.SetDefaultPrinter(item); } } } }
private void wizardControlActualizar_Archivo_PrevClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { try { Bandera_pagina = true; } catch (Exception ex) { string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name; MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Error_comunicarse_con_sistemas) + ex.Message + " ", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString()); } }
private void wizardControlActualizar_Archivo_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { try { switch (e.Page.Name) { case "wpSeleccion_archivo_excel": Bandera_pagina = Validar_seleccion_excel(); break; case "wpArchivo_Seleccionado": break; case "wpArchivos_actuales": Bandera_pagina = Reg_inCorrecto; if (!Bandera_pagina) { MessageBox.Show("Existe inconsistencia de registros, favor seleccione el archivo correcto.", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Warning); } break; case "wpArchivo_Actualizado": switch (info_Archivo.CodigoLegal) { case "10" /*Pichincha*/: Bandera_pagina = ValidarRegistros_Pichincha(); break; case "17" /*Guayaquil*/: Bandera_pagina = ValidarRegistros_Guayaquil(); break; default: break; } break; default: break; } } catch (Exception ex) { string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name; MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Error_comunicarse_con_sistemas) + ex.Message + " ", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString()); } }
private void wchConfig_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { switch (e.Page.Name) { case "wchTrangSled": //if (!NVCheck()) //{ //e.Handled = true; //wchConfig.SelectedPage = wchTrangSled; //} break; default: break; } }
private void WizardControl_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { if (e.Page == wzpOutputs) { this.DecoderOutputs = Convert.ToInt32(rdgOutputs.EditValue); if (this.DecoderOutputs <= 0 && (int)spnOutputs.Value <= 0) // 0 means custom number { MessageBox.Show("Accessory decoders must have at least 1 output.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Warning); e.Handled = true; } else if (Convert.ToInt32(rdgOutputs.EditValue) <= 0) { this.DecoderOutputs = (int)spnOutputs.Value; } } else if (e.Page == wzpAddress) { this.StartAddress = Convert.ToInt32(spnAddress.EditValue); if (this.StartAddress == 1 && (int)spnAddress.Value <= 0) { MessageBox.Show(string.Format("Decoder outputs must start at least at address {0:0000}.", OTCContext.Project.DigitalSystem.AccessoryAddressRange.Minimum), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Warning); e.Handled = true; } } else if (e.Page == wzpMode) { if (rdoModeContinuous.Checked) { this.OutputMode = AccessoryDecoderOutput.OutputMode.Continuous; } else if (rdoModeOneShot.Checked) { this.OutputMode = AccessoryDecoderOutput.OutputMode.OneShot; } else if (rdoModeFlasher.Checked) { this.OutputMode = AccessoryDecoderOutput.OutputMode.Flasher; } else if (rdoModeServo.Checked) { this.OutputMode = AccessoryDecoderOutput.OutputMode.ServoControl; } lblSummary.Text = this.GetFinishSummary(); } }
void OnNextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { dxErrorProvider1.ClearErrors(); if (e.Page == InputInfoPage) { #region InputInfoPage if (chkToXML.Checked) { FileInfo file = null; try { new FileInfo(btnXMLFile.Text); } catch (Exception ex) { dxErrorProvider1.SetError(btnXMLFile, "Please choose a location to save XML file"); e.Handled = true; return; } } if (chkToDatabase.Checked) { if (String.IsNullOrWhiteSpace(txtViewName.Text)) { dxErrorProvider1.SetError(txtViewName, "View name can not be empty!"); e.Handled = true; } if (String.IsNullOrWhiteSpace(lkeGroup.Text)) { dxErrorProvider1.SetError(lkeGroup, "Please choose a group !"); e.Handled = true; } if (String.IsNullOrWhiteSpace(txtViewName.Text) == false && String.IsNullOrWhiteSpace(lkeGroup.Text) == false) { STViewsInfo viewInfo = (STViewsInfo) new STViewsController().GetObjectByNo(txtViewName.Text); if (viewInfo != null) { dxErrorProvider1.SetError(txtViewName, "View name has been existed!"); e.Handled = true; } } } #endregion } }
private void wizStockTake_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { if (wizStockTake.SelectedPage == wizStockTakeVariance) { if (Essential.BaseAlert.ShowAlert("Complete Stock Take", "You are about to finalize the current stock take do you wish to continue ?\nPlease note that this action cannot be undone", Essential.BaseAlert.Buttons.OkCancel, Essential.BaseAlert.Icons.Information) == System.Windows.Forms.DialogResult.OK) { itmStockTake.StatusId = (byte)BL.ITM.ITM_StockTakeStatus.Completed; //TODO: Create and Save Inventory Adjustment Document SaveSuccessful(); Close(); } else { e.Handled = true; } } }
private void wizardControl1_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { if (e.Page.Name == "wizardPage1") { PU_CARGAR_EXCEL_GRILLA(); } if (e.Page.Name == "wizardPage4") { Fecha_contabilizacion = Convert.ToDateTime(de_fecha_contabilizacion.EditValue).Date; info_periodo = bus_periodo.Get_Info_Periodo(param.IdEmpresa, Fecha_contabilizacion, ref MensajeError); } if (e.Page.Name == "wizardPage3") { }//fin del wizardpage 3 }
private void wizardControl1_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { if (wizardControl1.SelectedPageIndex == 1 && radioGroup1.SelectedIndex == 3) { //Decompile type = Global.Data.Project.ProjectType.Decompile; // Add some Controls wizardPage1.Text = "Decompile"; wizardPage1.Controls.Clear(); wizardPage1.Controls.Add(new Decompile()); } else if (wizardControl1.SelectedPageIndex == 1 && radioGroup1.SelectedIndex != 3) { //New Project type = Global.Data.Project.ProjectType.Standalone; } }
private void wizardControl1_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { if (e.Page.Name == "wizardPage1") { //if (!PU_CARGAR_EXCEL_GRILLA()) PU_CARGAR_EXCEL_GRILLA(); } if (e.Page.Name == "wizardPage4") { IdCtaCble_CXP = ucCon_PlanCtaCmb_CxP_Proveedores.get_PlanCtaInfo().IdCtaCble; IdCtaCble_Anticipo = ucCon_PlanCtaCmb_CxC_Anticipos.get_PlanCtaInfo().IdCtaCble; IdCtaCble_Gasto = ucCon_PlanCtaCmb_CxC_Gastos.get_PlanCtaInfo().IdCtaCble; } if (e.Page.Name == "wizardPage3") { }//fin del wizardpage 3 }
private void wizardControl1_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { if (e.Page.Name == "wizardPage1") { //if (!PU_CARGAR_EXCEL_GRILLA()) PU_CARGAR_EXCEL_GRILLA(); } if (e.Page.Name == "wizardPage4") { cxc_Contado = ucCon_PlanCtaCmb_CxC.get_PlanCtaInfo().IdCtaCble; cxc_Credito = ucCon_PlanCtaCmb_CxC_Credito.get_PlanCtaInfo().IdCtaCble; cxc_Anticipo = ucCon_PlanCtaCmb_CxC_Anticipo.get_PlanCtaInfo().IdCtaCble; } if (e.Page.Name == "wizardPage3") { }//fin del wizardpage 3 }
private void wizardControlImportProducto_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { try { e.Page.AllowNext = true; if (e.Page.Name == wizardPageSeleccionExcel.Name) { PU_CARGAR_EXCEL_GRILLA(); } if (e.Page.Name == wizardPageTipoDeIngresoDatos.Name) { wizardPageEstadoGrabacion.AllowNext = false; } } catch (Exception ex) { } }
private void wizardControl1_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { try { if (e.Page.Name == "PageEmpleado")// generar detalle { foreach (var item in lista_prestamos) { if (Convert.ToString(this.cmbPeriodoPago.EditValue) == "SEM") { this.CalculoPrestamoSinInteres(item, 7, item.Tipo_Calculo); } } } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void wizardControl1_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { if (e.Page == wpSetting) { if (string.IsNullOrEmpty(txtPath.Text)) { XtraMessageBox.Show("请指定数据源路径!"); e.Handled = true; return; } //if (rpDataType.SelectedIndex != 0 && cmbTable.SelectedIndex < 0) //{ // XtraMessageBox.Show("请选择需要导入的数据表"); // e.Handled = true; // return; //} m_SplitArray[4] = txtSplit.Text; if (txtSplit.Enabled && string.IsNullOrEmpty(txtSplit.Text)) { XtraMessageBox.Show("请输入自定义分隔符"); e.Handled = true; return; } string strInfomation = string.Format("数据源类型: {0};\n", m_DataTypeString[rpDataType.SelectedIndex]); strInfomation += string.Format("数据源路径: {0};\n", txtPath.Text); if (rpDataType.SelectedIndex == 0) { strInfomation += string.Format("字段分隔符: {0};\n", m_SplitArray[rpSplit.SelectedIndex]); } else { strInfomation += string.Format("数据表: {0}\n", cmbTable.Text); } strInfomation += string.Format("仅一条记录:{0}", cbOnlyOne.Checked?"是":"否"); txtInfomation.Text = strInfomation; } }
private void wizardControl1_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { if (e.Page == pageNguoiDung) { if (string.IsNullOrEmpty(txtTenDangNhap.Text)) { txtTenDangNhap.ErrorText = "Nhập tên đăng nhập"; e.Handled = true; } if (string.IsNullOrEmpty(txtMatKhau.Text)) { txtMatKhau.ErrorText = "Mật khẩu quản trị không được trống"; e.Handled = true; } else if (!txtMatKhau.Text.Equals(txtXacNhan.Text)) { txtXacNhan.ErrorText = "Xác nhận mật khẩu không trùng khớp"; e.Handled = true; } } }
private void wizardControl1_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { if (e.Page == this.welcomeWizardPage) { ShowUpdateDescription(); } else if (e.Page == this.updateDescrptionWizardPage) { this.downLoadUnpackingWizardPage.AllowNext = false; this.downLoadUnpackingWizardPage.AllowBack = false; try { //MessageBox.Show("RunWorkerAsync 이전"); bgWorker.RunWorkerAsync(); //MessageBox.Show("RunWorkerAsync 이후"); } catch (Exception ea) { MessageBox.Show(ea.Message); } } }
private void wizardControl1_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { try { e.Page.AllowNext = true; if (e.Page.Name == wizardPageSeleccionExcel.Name) { PU_CARGAR_EXCEL_GRILLA(); } if (e.Page.Name == wizardPageTipoDeIngresoDatos.Name) { wizardPageEstadoGrabacion.AllowNext = false; } } catch (Exception ex) { splashScreenManager.CloseWaitForm(); Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void wizardImportacionPQ_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) { try { switch (e.Page.Name) { case "WizardPaginainicio": break; case "wizardPaginaSeleccionFile": if (ValidarSiSeleccionofile()) { GetListaDelExcel(TxtRuraFile.Text); gridControlNovxEmp.DataSource = lista; LbNombreFile.Text = "Archivo Seleccionado: " + NombreArchivo; } break; case "wizardPaginaempleados": SepararNomina(); break; case "wizardPaginaDividirNomina": CargarPeriodos(); break; case "wizardPaginaFormadeDescontar_Periodos": if (ValidarSeleccionDePeriodos()) { AsignarValor_Novedad(); } break; case "wizardPaginaNovedadesCreadas": if (MessageBox.Show("¿Está seguro que desea Subir las novedades Creadas ?", "Importacion de Novedades", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { if (BanderaSiPeriodoProcesado == true) { if (MessageBox.Show("¿Uno o varios periodos ya han sido procesados desea agregar las novedades?", "Importacion de Novedades", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { Bandera_ValidarPagina = true; GrabarDB(); } else { Bandera_ValidarPagina = false; } } else { Bandera_ValidarPagina = true; GrabarDB(); } } else { Bandera_ValidarPagina = false; } break; default: break; } } catch (Exception ex) { MessageBox.Show(ex.ToString()); Log_Error_bus.Log_Error(ex.ToString()); } }