C# Class AerolineaFrba.Validacion

Show file Open project: santileira/BHLP

Public Methods

Method Description
controlIngresoNumeroDecimal ( object sender, KeyPressEventArgs e ) : void
controlIngresoNumeroEntero ( object sender, KeyPressEventArgs e ) : void
esDecimal ( TextBox txtBox, string nombreCampo = "Opcional", System.Boolean mostrarMensaje = false ) : System.Boolean
esMatricula ( System.Windows.Forms.MaskedTextBox txtBox, System.Boolean mostrarMensaje = false ) : System.Boolean
esNumero ( TextBox txtBox, string nombreCampo = "Opcional", System.Boolean mostrarMensaje = false ) : System.Boolean
esSoloTexto ( TextBox txtBox, string nombreCampo = "Opcional", System.Boolean mostrarMensaje = false ) : System.Boolean
esTexto ( TextBox txtBox, string nombreCampo = "Opcional", System.Boolean mostrarMensaje = false ) : System.Boolean
esTextoAlfanumerico ( TextBox txtBox, System.Boolean primeroLetra, string nombreCampo = "Opcional", System.Boolean mostrarMensaje = false ) : System.Boolean
esVacio ( ComboBox cboBox, string nombreCampo = "Opcional", bool mostrarMensaje = false ) : System.Boolean
esVacio ( ListBox txtBox, string nombreCampo = "Opcional", bool mostrarMensaje = false ) : System.Boolean
esVacio ( TextBox txtBox, string nombreCampo = "Opcional", bool mostrarMensaje = false ) : System.Boolean
estaCheckeadoCheck ( CheckBox check ) : System.Boolean
estaEntreLimites ( TextBox txt, decimal limiteInferior, decimal limiteSuperior, System.Boolean numeroDecimal, string nombreCampo ) : System.Boolean
estaSeleccionado ( ComboBox combo, System.Boolean mostrarMensaje = false, String opcional = "opciones" ) : System.Boolean
fechaPosteriorALaDeHoy ( DateTimePicker dateTimePicker1 ) : System.Boolean
filtrosContengaEIgualdad ( TextBox filtro1, TextBox filtro2 ) : System.Boolean
igualdadCiudades ( TextBox txtCiudadDestino, TextBox txtCiudadOrigen ) : bool
listaVacia ( List lista, string nombreCampo = "Opcional", System.Boolean mostrarMensaje = false ) : System.Boolean
numeroCorrecto ( TextBox txtBox, string campo, bool debeSerDecimal ) : System.Boolean
textNombre ( TextBox txtBox, string nombreCampo ) : System.Boolean

Private Methods

Method Description
cantidadEnCadena ( string cadena, char caracter ) : int
comaYPuntoCorrectos ( string cadena ) : bool
estaCheckeadoOpt ( RadioButton option ) : bool

Method Details

controlIngresoNumeroDecimal() public static method

public static controlIngresoNumeroDecimal ( object sender, KeyPressEventArgs e ) : void
sender object
e System.Windows.Forms.KeyPressEventArgs
return void

controlIngresoNumeroEntero() public static method

public static controlIngresoNumeroEntero ( object sender, KeyPressEventArgs e ) : void
sender object
e System.Windows.Forms.KeyPressEventArgs
return void

esDecimal() public static method

public static esDecimal ( TextBox txtBox, string nombreCampo = "Opcional", System.Boolean mostrarMensaje = false ) : System.Boolean
txtBox System.Windows.Forms.TextBox
nombreCampo string
mostrarMensaje System.Boolean
return System.Boolean

esMatricula() public static method

public static esMatricula ( System.Windows.Forms.MaskedTextBox txtBox, System.Boolean mostrarMensaje = false ) : System.Boolean
txtBox System.Windows.Forms.MaskedTextBox
mostrarMensaje System.Boolean
return System.Boolean

esNumero() public static method

public static esNumero ( TextBox txtBox, string nombreCampo = "Opcional", System.Boolean mostrarMensaje = false ) : System.Boolean
txtBox System.Windows.Forms.TextBox
nombreCampo string
mostrarMensaje System.Boolean
return System.Boolean

esSoloTexto() public static method

public static esSoloTexto ( TextBox txtBox, string nombreCampo = "Opcional", System.Boolean mostrarMensaje = false ) : System.Boolean
txtBox System.Windows.Forms.TextBox
nombreCampo string
mostrarMensaje System.Boolean
return System.Boolean

esTexto() public static method

public static esTexto ( TextBox txtBox, string nombreCampo = "Opcional", System.Boolean mostrarMensaje = false ) : System.Boolean
txtBox System.Windows.Forms.TextBox
nombreCampo string
mostrarMensaje System.Boolean
return System.Boolean

esTextoAlfanumerico() public static method

public static esTextoAlfanumerico ( TextBox txtBox, System.Boolean primeroLetra, string nombreCampo = "Opcional", System.Boolean mostrarMensaje = false ) : System.Boolean
txtBox System.Windows.Forms.TextBox
primeroLetra System.Boolean
nombreCampo string
mostrarMensaje System.Boolean
return System.Boolean

esVacio() public static method

public static esVacio ( ComboBox cboBox, string nombreCampo = "Opcional", bool mostrarMensaje = false ) : System.Boolean
cboBox System.Windows.Forms.ComboBox
nombreCampo string
mostrarMensaje bool
return System.Boolean

esVacio() public static method

public static esVacio ( ListBox txtBox, string nombreCampo = "Opcional", bool mostrarMensaje = false ) : System.Boolean
txtBox System.Windows.Forms.ListBox
nombreCampo string
mostrarMensaje bool
return System.Boolean

esVacio() public static method

public static esVacio ( TextBox txtBox, string nombreCampo = "Opcional", bool mostrarMensaje = false ) : System.Boolean
txtBox System.Windows.Forms.TextBox
nombreCampo string
mostrarMensaje bool
return System.Boolean

estaCheckeadoCheck() public static method

public static estaCheckeadoCheck ( CheckBox check ) : System.Boolean
check System.Windows.Forms.CheckBox
return System.Boolean

estaEntreLimites() public static method

public static estaEntreLimites ( TextBox txt, decimal limiteInferior, decimal limiteSuperior, System.Boolean numeroDecimal, string nombreCampo ) : System.Boolean
txt System.Windows.Forms.TextBox
limiteInferior decimal
limiteSuperior decimal
numeroDecimal System.Boolean
nombreCampo string
return System.Boolean

estaSeleccionado() public static method

public static estaSeleccionado ( ComboBox combo, System.Boolean mostrarMensaje = false, String opcional = "opciones" ) : System.Boolean
combo System.Windows.Forms.ComboBox
mostrarMensaje System.Boolean
opcional String
return System.Boolean

fechaPosteriorALaDeHoy() public static method

public static fechaPosteriorALaDeHoy ( DateTimePicker dateTimePicker1 ) : System.Boolean
dateTimePicker1 System.Windows.Forms.DateTimePicker
return System.Boolean

filtrosContengaEIgualdad() public static method

public static filtrosContengaEIgualdad ( TextBox filtro1, TextBox filtro2 ) : System.Boolean
filtro1 System.Windows.Forms.TextBox
filtro2 System.Windows.Forms.TextBox
return System.Boolean

igualdadCiudades() public static method

public static igualdadCiudades ( TextBox txtCiudadDestino, TextBox txtCiudadOrigen ) : bool
txtCiudadDestino System.Windows.Forms.TextBox
txtCiudadOrigen System.Windows.Forms.TextBox
return bool

listaVacia() public static method

public static listaVacia ( List lista, string nombreCampo = "Opcional", System.Boolean mostrarMensaje = false ) : System.Boolean
lista List
nombreCampo string
mostrarMensaje System.Boolean
return System.Boolean

numeroCorrecto() public static method

public static numeroCorrecto ( TextBox txtBox, string campo, bool debeSerDecimal ) : System.Boolean
txtBox System.Windows.Forms.TextBox
campo string
debeSerDecimal bool
return System.Boolean

textNombre() public static method

public static textNombre ( TextBox txtBox, string nombreCampo ) : System.Boolean
txtBox System.Windows.Forms.TextBox
nombreCampo string
return System.Boolean