public ResearchEditDlgController(IResearchEditDlg view) : base(view) { for (GDMResearchPriority rp = GDMResearchPriority.rpNone; rp <= GDMResearchPriority.rpTop; rp++) { fView.Priority.Add(LangMan.LS(GKData.PriorityNames[(int)rp])); } for (GDMResearchStatus rs = GDMResearchStatus.rsDefined; rs <= GDMResearchStatus.rsWithdrawn; rs++) { fView.Status.Add(LangMan.LS(GKData.StatusNames[(int)rs])); } }
public override void Clear() { base.Clear(); fResearchName = string.Empty; fPriority = GDMResearchPriority.rpNone; fStatus = GDMResearchStatus.rsDefined; fStartDate.Clear(); fStopDate.Clear(); fPercent = 0; fTasks.Clear(); fCommunications.Clear(); fGroups.Clear(); }
public override void Assign(GDMTag source) { GDMResearchRecord sourceObj = (source as GDMResearchRecord); if (sourceObj == null) { throw new ArgumentException(@"Argument is null or wrong type", "source"); } base.Assign(sourceObj); fResearchName = sourceObj.fResearchName; fPriority = sourceObj.fPriority; fStatus = sourceObj.fStatus; fStartDate.Assign(sourceObj.fStartDate); fStopDate.Assign(sourceObj.fStopDate); fPercent = sourceObj.fPercent; AssignList(sourceObj.fTasks, fTasks); AssignList(sourceObj.fCommunications, fCommunications); AssignList(sourceObj.fGroups, fGroups); }