zoukankan      html  css  js  c++  java
  • UpDownBase & UpDownBase<T>

    public class DoubleUpDown : UpDownBase<double>
        {
            
    ///<summary>
            
    /// Internal constructor.
            
    ///</summary>
            public DoubleUpDown( )
                : 
    base( )
            {
                Value 
    = 0;
            }

            
    ///<summary>
            
    /// Called by OnSpin when the spin direction is SpinDirection.Increase.
            
    ///</summary>
            protected override void OnIncrement( )
            {
                Value 
    = Value + 1;
            }

            
    ///<summary>
            
    /// Called by OnSpin when the spin direction is SpinDirection.Increase.
            
    ///</summary>
            protected override void OnDecrement( )
            {
                Value 
    = Value - 1;
            }

            
    ///<summary>
            
    /// Called by ApplyValue to parse user input.
            
    ///</summary>
            
    ///<param name="text">User input.</param>
            
    ///<returns>Value parsed from user input.</returns>
            protected override double ParseValue( string text )
            {
                
    return double.Parse( text, CultureInfo.CurrentCulture );
            }

            
    ///<summary>
            
    /// Called to render Value for Text template part to display.
            
    ///</summary>
            
    ///<returns>Formatted Value.</returns>
            protected override string FormatValue( )
            {
                
    return Value.ToString( CultureInfo.CurrentCulture );
            }
        }
  • 相关阅读:
    Kafka中数据的流向
    kafka调试中遇到could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
    knife4j
    SpringBoot使用ELK日志收集ELASTIC (ELK) STACK
    Jedis连接池(实际项目可用)
    Redis windows安装帮助
    Spring Boot 多数据配置更新
    SpringBoot使用Mybatis-Generator
    tkinter显示图片
    window nodejs 版本管理器 nvm-windows 教程
  • 原文地址:https://www.cnblogs.com/mycrystal/p/2174631.html
Copyright © 2011-2022 走看看