public static UserList GetUniqueInstance() { if (_uniqueInstance == null) _uniqueInstance = new UserList("SF_User"); return _uniqueInstance; }
public OrganizationListController(DataGridView dgv) : base(dgv) { _dgv = dgv; _userList = UserList.GetUniqueInstance(); _lpuList = new LpuList(); _user = _userList.GetItem(globalData.UserID) as User; _typeOrg = TypeOrg.ЛПУ; }
public UserLpuAccess() { InitializeComponent(); _regionRRList = RegionRRList.GetUniqueInstance(); _lpuRRList = LpuRRList.GetUniqueInstance(); _userLpuRRList = UserLpuRRList.GetUniqueInstance(); _userList = UserList.GetUniqueInstance(); _lpuRRController = new LpuRRController(_dgv1); _userLpuRRListController = new UserLpuRRListController(_dgv2); globalData.load = false; cbSDiv.SelectedIndex = 0; globalData.Div = cbSDiv.SelectedItem.ToString(); globalData.load = true; fillRegion(); fillUsers(); }