Example #1
0
        /// <summary>
        /// Constructs a new <see cref="RiskeerProject"/>.
        /// </summary>
        /// <param name="name">The name of the <see cref="RiskeerProject"/>.</param>
        /// <param name="assessmentSection">The <see cref="AssessmentSection"/> of the project.</param>
        /// <exception cref="ArgumentNullException">Thrown when <paramref name="assessmentSection"/> is <c>null</c>.</exception>
        public RiskeerProject(string name, AssessmentSection assessmentSection)
        {
            if (assessmentSection == null)
            {
                throw new ArgumentNullException(nameof(assessmentSection));
            }

            Name              = name;
            Description       = "";
            AssessmentSection = assessmentSection;
        }
Example #2
0
        private bool Equals(IProject other)
        {
            var otherProject = other as RiskeerProject;

            if (otherProject == null)
            {
                return(false);
            }

            return(string.Equals(Name, otherProject.Name) &&
                   string.Equals(Description, otherProject.Description) &&
                   AssessmentSection.Equals(otherProject.AssessmentSection));
        }
Example #3
0
 /// <summary>
 /// Constructs a new <see cref="RiskeerProject"/>.
 /// </summary>
 /// <param name="assessmentSection">The <see cref="AssessmentSection"/> of the project.</param>
 /// <exception cref="ArgumentNullException">Thrown when <paramref name="assessmentSection"/> is <c>null</c>.</exception>
 public RiskeerProject(AssessmentSection assessmentSection) : this(Resources.Project_Constructor_Default_name, assessmentSection)
 {
 }