Ejemplo n.º 1
0
 public TMinSexView sexView = null; //TMinSexView 构造函数 传入秒钟数据
 public TDateTimeView()
 {
     InitializeComponent();
     hourView = new THourView(textBlockhh.Text);   // THourView 构造函数传递小时数据
     minView  = new TMinSexView(textBlockmm.Text); //TMinSexView 构造函数传递 分钟数据
     sexView  = new TMinSexView(textBlockss.Text); //TMinSexView 构造函数 传入秒钟数据
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="txt"></param>
 public TDateTimeView(string txt)
     : this()
 {
     this.formerDateTimeStr = txt;
     hourView = new THourView(txt);
     minView  = new TMinSexView(txt); //TMinSexView 构造函数传递 分钟数据
     sexView  = new TMinSexView(txt); //TMinSexView 构造函数 传入秒钟数据
 }