using System.ComponentModel;
using app.Lib.Data;

namespace app.Lib
{
/// <summary>
/// 属性修改类
/// </summary>
public class PropertyChangedBase : INotifyPropertyChanged
{
#region INotifyPropertyChanged Members
/// <summary>
/// 属性修改事件处理委托
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// 发送属性修改事件
/// </summary>
public void NotifyPropertyChanged(string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

public void NotifyPropertyChanged(DataName name)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(name.ToString()));
}
}

/// <summary>
/// 发送属性修改事件
/// </summary>
public void NotifyPropertyChanged(object c, string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(c, new PropertyChangedEventArgs(propertyName));
}
}
#endregion
}
}

 

 

using app.Lib;

namespace app.Configuration.Models
{
public class CategoryInfo : PropertyChangedBase
{
private string _height;
public string Height
{
get { return _height; }
set
{
_height = value;
NotifyPropertyChanged("Height");
}
}

private string _weight;
public string Weight
{
get { return _weight; }
set
{
_weight = value;
NotifyPropertyChanged("Weight");
}
}

private string _bas;
public string Bas
{
get { return _bas; }
set
{
_bas = value;
NotifyPropertyChanged("Bas");
}
}

private string _lmp;
public string Lmp
{
get { return _lmp; }
set
{
_lmp = value;
NotifyPropertyChanged("Lmp");
}
}

private string _gravida;
public string Gravida
{
get { return _gravida; }
set
{
_gravida = value;
NotifyPropertyChanged("Gravida");
}
}

private string _para;
public string Para
{
get { return _para; }
set
{
_para = value;
NotifyPropertyChanged("Para");
}
}

private string _ab;
public string Ab
{
get { return _ab; }
set
{
_ab = value;
NotifyPropertyChanged("Ab");
}
}

private string _ectopic;
public string Ectopic
{
get { return _ectopic; }
set
{
_ectopic = value;
NotifyPropertyChanged("Ectopic");
}
}

private string _bbt;
public string Bbt
{
get { return _bbt; }
set
{
_bbt = value;
NotifyPropertyChanged("Bbt");
}
}

private string _eddbylmp;
public string EddbyLmp
{
get { return _eddbylmp; }
set
{
_eddbylmp = value;
NotifyPropertyChanged("EddbyLmp");
}
}

private string _gabylmp;
public string GabyLmp
{
get { return _gabylmp; }
set
{
_gabylmp = value;
NotifyPropertyChanged("GabyLmp");
}
}

private string _psa;
public string Psa
{
get { return _psa; }
set
{
_psa = value;
NotifyPropertyChanged("Psa");
}
}

private string _ppsacoefficient1;
public string PpsaCoefficient1
{
get { return _ppsacoefficient1; }
set
{
_ppsacoefficient1 = value;
NotifyPropertyChanged("PpsaCoefficient1");
}
}

private string _ppsacoefficient2;
public string PpsaCoefficient2
{
get { return _ppsacoefficient2; }
set
{
_ppsacoefficient2 = value;
NotifyPropertyChanged("PpsaCoefficient2");
}
}

private string _fetus;
public string Fetus
{
get { return _fetus; }
set
{
_fetus = value;
NotifyPropertyChanged("Fetus");
}
}

private string _accession;
public string Accession
{
get { return _accession; }
set
{
_accession = value;
NotifyPropertyChanged("Accession");
}
}

private string _examdescription;
public string ExamDescription
{
get { return _examdescription; }
set
{
_examdescription = value;
NotifyPropertyChanged("ExamDescription");
}
}

private string _perfphysician;
public string PerfPhysician
{
get { return _perfphysician; }
set
{
_perfphysician = value;
NotifyPropertyChanged("PerfPhysician");
}
}

private string _refphysician;
public string RefPhysician
{
get { return _refphysician; }
set
{
_refphysician = value;
NotifyPropertyChanged("RefPhysician");
}
}

private string _operator;
public string Operator//未翻译
{
get { return _operator; }
set
{
_operator = value;
NotifyPropertyChanged("Operator");
}
}

private string _admission;
public string Admission
{
get { return _admission; }
set
{
_admission = value;
NotifyPropertyChanged("Admission");
}
}

private string _indication;
public string Indication
{
get { return _indication; }
set
{
_indication = value;
NotifyPropertyChanged("Indication");
}
}

private string _comments;
public string Comments
{
get { return _comments; }
set
{
_comments = value;
NotifyPropertyChanged("Comment");
}
}

private string _perfphone;
public string PerfPhone
{
get { return _perfphone; }
set
{
_perfphone = value;
NotifyPropertyChanged("PerfPhone");
}
}

private string _refphone;
public string RefPhone
{
get { return _refphone; }
set
{
_refphone = value;
NotifyPropertyChanged("RefPhone");
}
}

private string _operatorphone;
public string OperatorPhone
{
get { return _operatorphone; }
set
{
_operatorphone = value;
NotifyPropertyChanged("OperatorPhone");
}
}

public CategoryInfo()
{
Height = "";
Weight = "";
Bas = "";
Lmp = "";
Gravida = "";
Para = "";
Ab = "";
Ectopic = "";
Bbt = "";
EddbyLmp = "";
GabyLmp = "";
Psa = "";
PpsaCoefficient1 = "";
PpsaCoefficient2 = "";
Fetus = "";

Accession = "";
ExamDescription = "";
PerfPhysician = "";
RefPhysician = "";
Operator = "";

Admission = "";
Indication = "";
Comments = "";
PerfPhone = "";
RefPhone = "";
OperatorPhone = "";
}
}
}

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄