Esempio n. 1
0
		/// <summary>
		/// Add a UserAccount to the collection.
		/// </summary>
		/// <param name="ua">The UserAccount to add.</param>
		public UserAccount Add(UserAccount ua)
		{
			Debug.Assert(ua != null);
			//TODO:  later i will want to re-enable this line
			//UserAccount uaAdd = (UserAccount)ValidateObject(ua);
			UserAccount uaAdd = ua;
			List.Add(uaAdd);
			return uaAdd;
		}
Esempio n. 2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="UserAppFeatAct"/> class.
		/// This is the only way you can modify the application Id and the feature Id
		/// </summary>
		/// <param name="userAccount"></param>
		/// <param name="appId"></param>
		/// <param name="featureId"></param>
		/// <param name="activatedLevel"></param>
		/// ------------------------------------------------------------------------------------
		public UserAppFeatAct(UserAccount userAccount, int appId, int featureId, int activatedLevel)
		{
			m_UserAccount = userAccount;
			m_ApplicationId = appId;
			m_FeatureId = featureId;
			m_ActivatedLevel = activatedLevel;
		}