太难了
public class Button
{
#region 写法1
private string _Name;
public string Name
{
get { return _Name; }
set { _Name = value; }
}
private bool _Enabled;
public bool Enabled
{
get { return _Enabled; }
set { _Enabled = value; }
}
private string _Text;
public string Text
{
get { return _Text; }
set { _Text = value; }
}
#endregion
#region 写法2
//public string Name { get; set; }
//public bool Enabled { get; set; }
//public string Text { get; set; }
#endregion
public void Click()
{
}
public void Set(string strl)
{
}
}
是vue框架还是其他静态html
public string Name{get;set;}
public bool Enabled{get;set;}
public string Text{get;set;}