Esempio n. 1
0
        /// <summary>
        ///		Crea un control numérico
        /// </summary>
        private Control CreateControlNumber(string strValue)
        {
            TextBox.NumericUpDowExtended nudControl = new TextBox.NumericUpDowExtended();
            double dblValue = 0;

            // Obtiene el valor
            if (double.TryParse(strValue, out dblValue))
            {
                dblValue = 0;
            }
            // Asigna el valor
            nudControl.Value = (decimal)dblValue;
            // Devuelve el control
            return(nudControl);
        }
        /// <summary>
        ///		Crea un control numérico
        /// </summary>
        private Control CreateControlNumber(string strValue)
        {
            TextBox.NumericUpDowExtended nudControl = new TextBox.NumericUpDowExtended();
            double dblValue = 0;

                // Obtiene el valor
                    if (double.TryParse(strValue, out dblValue))
                        dblValue = 0;
                // Asigna el valor
                    nudControl.Value = (decimal) dblValue;
                // Devuelve el control
                    return nudControl;
        }