练手之日期选择组件

前些天写的一个日期选择组件,
因为打算转向.net所以开始些写一些基础的组件,但主要还是为了练练手,
用C#2005写的
其中包括动态控件数组,与DateTime的使用


组件代码:
Using directives

namespace STextBox
{
  
public partial class Calendar : UserControl
  
{
    
Variable declare
    
Control core
    
public Calendar()
    
{
      InitializeComponent();
    }

    
private void Calendar_Load(object sender, EventArgs e)
    
{
      mRsz 
= true;
      
this.Size = new Size(175239);
      InitControl();
      mRsz 
= false;
    }

    
private void Calendar_Resize(object sender, EventArgs e)
    
{
      
if (mRsz) return;
      mRsz 
= true;
      
//180
      this.Size = new Size(175,180);
      
if (panel2.Visible)
        
this.Size = new Size(175this.Size.Height + panel2.Height);
      
if (panel4.Visible)
      
{
        panel4.Top 
= panel2.Visible ? panel2.Height : 0 + 180;
        
this.Size = new Size(175this.Size.Height + panel4.Height);
      }

      mRsz 
= false;
    }


    
private void panel4_Paint(object sender, PaintEventArgs e)
    
{
    
    }

  }

}



一个函数库,现在还只有很少的一部分函数
namespace CommCode
{
  
/// <summary>
  
/// 通用方法
  
/// </summary>

  public static class CM
  
{
    
名称编码处理
    
  }

}
原文地址:https://www.cnblogs.com/pvistely/p/64195.html