/// <summary> /// 返回一个单例EntityControl /// </summary> /// <returns></returns> public static EntityControl CreateEntityControl() { if (_entity != null) { return(_entity); } lock (Padlock) { if (_entity == null) { _entity = new EntityControl(); } } return(_entity); }
public SystemData() { _control = EntityControl.CreateEntityControl(); }