public void ResetForNewEntry() { this.txtID.Text = ""; this.txtRole.Text = ""; /* teams handling moved to Layout handler this.cboTeam.Items.Clear(); List<string> allTeams = Ctl_Teams.Teams.GetNames(); allTeams.Sort(); for (int i = 0; i < allTeams.Count; i++) { cboTeam.Items.Add(allTeams[i]); } */ this.cboTeam.Text = ""; this.rtbBriefing.Text = ""; this.lblSwath.BackColor = Color.Black; _datastore = new DecisionMakerDataStruct(""); _datastore.CheckUniquenessOnSave = true; }
public DecisionMakerDataStruct CreateDecisionMaker(string name) { DecisionMakerDataStruct dm = new DecisionMakerDataStruct(name); Types.DecisionMakerList.Add(dm); if (!UniqueNames.Contains(name)) { UniqueNames.Add(name); } return dm; }
public override object Clone() { DecisionMakerDataStruct obj = new DecisionMakerDataStruct(ID); obj.Team = Team; obj.Role = Role; obj.Briefing = Briefing; obj.DMColor = DMColor; return obj; }