string Age = ""; PeopleInfo _Info; public PeopleInfo Info { get { return _Info; } set { _Info = value; if (_Info != null && _Info.CardNo != "") { this.txt姓名.Text = _Info.Name; this.txt性别.Text = _Info.Sex; this.txt生日.Text = ""; this.txt身份证号.Text = _Info.CardNo; this.txt地址.Text = ""; this.txt住院号.Text = _Info.ZYH; Age = _Info.Age; BinDingData(); myTabControl1.SelectedTab = tabPage病人基本信息; } } } private static UserControl病人信息 _ItSelf; public static UserControl病人信息 ItSelf { get { if (_ItSelf == null || _ItSelf.IsDisposed) { _ItSelf = new UserControl病人信息(); } return _ItSelf; } }