private void button1_Click_1(object sender, EventArgs e) { string description = this.UI_RiskDescription.Text; int priority = Int32.Parse(this.UI_RiskPriority.Text); int likelyhood = Int32.Parse(this.UI_RiskLikelyhood.Text); Risk r = new Risk(description, likelyhood, priority); currentProject.addRisk(r); data.updateProject(currentProject); this.Close(); }
public void addRisk(Risk r) { risks.Add(r); }