public static string GetStatusStr(GKResearchStatus value) { string s = ""; switch (value) { case GKResearchStatus.rsDefined: s = "defined"; break; case GKResearchStatus.rsInProgress: s = "inprogress"; break; case GKResearchStatus.rsOnHold: s = "onhold"; break; case GKResearchStatus.rsProblems: s = "problems"; break; case GKResearchStatus.rsCompleted: s = "completed"; break; case GKResearchStatus.rsWithdrawn: s = "withdrawn"; break; } return(s); }
public ResearchEditDlg() { InitializeComponent(); for (GKResearchPriority rp = GKResearchPriority.rpNone; rp <= GKResearchPriority.rpTop; rp++) { cmbPriority.Items.Add(LangMan.LS(GKData.PriorityNames[(int)rp])); } for (GKResearchStatus rs = GKResearchStatus.rsDefined; rs <= GKResearchStatus.rsWithdrawn; rs++) { cmbStatus.Items.Add(LangMan.LS(GKData.StatusNames[(int)rs])); } fTasksList = new GKSheetList(pageTasks); fTasksList.OnModify += ListTasksModify; fCommunicationsList = new GKSheetList(pageCommunications); fCommunicationsList.OnModify += ListCommunicationsModify; fGroupsList = new GKSheetList(pageGroups); fGroupsList.OnModify += ListGroupsModify; fNotesList = new GKSheetList(pageNotes); SetLang(); }
public ResearchEditDlg() { InitializeComponent(); btnAccept.Image = GKResources.iBtnAccept; btnCancel.Image = GKResources.iBtnCancel; for (GKResearchPriority rp = GKResearchPriority.rpNone; rp <= GKResearchPriority.rpTop; rp++) { cmbPriority.Items.Add(LangMan.LS(GKData.PriorityNames[(int)rp])); } for (GKResearchStatus rs = GKResearchStatus.rsDefined; rs <= GKResearchStatus.rsWithdrawn; rs++) { cmbStatus.Items.Add(LangMan.LS(GKData.StatusNames[(int)rs])); } fTasksList = new GKSheetList(pageTasks); fTasksList.OnModify += ListTasksModify; fTasksList.SetControlName("fTasksList"); // for purpose of tests fCommunicationsList = new GKSheetList(pageCommunications); fCommunicationsList.OnModify += ListCommunicationsModify; fCommunicationsList.SetControlName("fCommunicationsList"); // for purpose of tests fGroupsList = new GKSheetList(pageGroups); fGroupsList.OnModify += ListGroupsModify; fGroupsList.SetControlName("fGroupsList"); // for purpose of tests fNotesList = new GKSheetList(pageNotes); SetLang(); }
public ResearchEditDlgController(IResearchEditDlg view) : base(view) { for (GKResearchPriority rp = GKResearchPriority.rpNone; rp <= GKResearchPriority.rpTop; rp++) { fView.Priority.Add(LangMan.LS(GKData.PriorityNames[(int)rp])); } for (GKResearchStatus rs = GKResearchStatus.rsDefined; rs <= GKResearchStatus.rsWithdrawn; rs++) { fView.Status.Add(LangMan.LS(GKData.StatusNames[(int)rs])); } }