예제 #1
0
        private bool ValidData()
        {
            var textboxes = new object[]
            {
                txbNameRoutine,
                txbDescriptionRoutine
            };

            return(DataControl.Validar(textboxes));
        }
        protected bool ValidaData()
        {
            var textboxes = new object[]
            {
                txbNameVirtualBidder,
                txbDescriptionVirtuaBidder,
                txbWalletVirtualBidder
            };

            return(DataControl.Validar(textboxes));
        }
 private void Txb_Validated(object sender, EventArgs e)
 {
     try
     {
         var txb = (TextBox)sender;
         DataControl.Validar(txb);
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
        private bool ValidData()
        {
            var textboxes = new object[]
            {
                txbNameRole,
                txbDescriptionRole,
                mtxbTimeToBidDown,
                mtxbTimeToBidTop,
                txbOfersForRoundDown,
                txbOffersForRoundTop,
                txbRoundsDown,
                txbRoundsTop,
                txbBidIncreaseDown,
                txbBidIncreaseBidTop
            };

            return(DataControl.Validar(textboxes));
        }
        private void mtxbTimeToBidTop_Validated(object sender, EventArgs e)
        {
            var mtxb = (MaskedTextBox)sender;

            if (DataControl.Validar(mtxb))
            {
                return;
            }
            if (DataControl.Validar(mtxbTimeToBidDown))
            {
                return;
            }
            var down = new Time(mtxbTimeToBidDown.Text, "mm:ss");
            var top  = new Time(mtxb.Text, "mm:ss");

            if (top >= down)
            {
                return;
            }
            MessageBox.Show(@"El valor máximo no puede ser menor que el valor mínimo.");
            mtxb.Clear();
        }
        private void txbIncreaseForBidTop_Validated(object sender, EventArgs e)
        {
            var txb = (TextBox)sender;

            if (DataControl.Validar(txb))
            {
                return;
            }
            if (DataControl.Validar(txbBidIncreaseDown))
            {
                return;
            }
            var down = int.Parse(txbBidIncreaseDown.Text);
            var top  = int.Parse(txbBidIncreaseBidTop.Text);

            if (top >= down)
            {
                return;
            }
            MessageBox.Show(@"El valor máximo no puede ser menor que el valor mínimo.");
            DataControl.Clear(txb);
        }
        private void txbRoundsDown_Validated(object sender, EventArgs e)
        {
            var txb = (TextBox)sender;

            if (DataControl.Validar(txb))
            {
                return;
            }
            if (DataControl.Validar(txbRoundsTop))
            {
                return;
            }
            var down = int.Parse(txbRoundsDown.Text);
            var top  = int.Parse(txbRoundsTop.Text);

            if (down <= top)
            {
                return;
            }
            MessageBox.Show(@"El valor minimo no puede ser mayor que el valor máximo.");
            DataControl.Clear(txb);
        }
예제 #8
0
        private bool ValidData()
        {
            var textboxes = new object[] { txbNameFamily, txbPointsValue };

            return(DataControl.Validar(textboxes));
        }
 private void Txb_Validated(object sender, EventArgs e)
 {
     DataControl.Validar((TextBox)sender);
 }
        private bool ValidData()
        {
            var textboxes = new object[] { txbIdProduct, txbInitialPrice, txbNameProduct, txbPointsValue };

            return(DataControl.Validar(textboxes));
        }