コード例 #1
0
        private void ServiciosButton_Click(object sender, EventArgs e)
        {
            AppHelper.Try(
                delegate
            {
                ObtenerTipoClienteTaller();
                this.BuscarServiciosForm.TipoClienteTaller_ID = this.TipoClienteTaller_ID;
                this.BuscarServiciosForm.Padre = this.Padre;

                if (this.BuscarServiciosForm.ShowDialog() == DialogResult.OK)
                {
                    if (this.BuscarServiciosForm.EsRefaccionesIncluidas)
                    {
                        AgregarServicio(this.BuscarServiciosForm.Servicio, this.BuscarServiciosForm.Cantidad);
                    }
                    else
                    {
                        AgregarVentaServicio(this.BuscarServiciosForm.Servicio, this.BuscarServiciosForm.Cantidad);
                    } // end else
                }     // end if
            }         // end delegate
                );    // end AppHelper.Try()
        } // end void ServiciosButton_Click